<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        
        <title>
            
    
                0.6 Changelog
             &mdash; 
    SQLAlchemy 0.8 Documentation

        </title>
        
    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
    <link rel="stylesheet" href="../_static/docs.css" type="text/css" />

    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
          URL_ROOT:    '../',
          VERSION:     '0.8.2',
          COLLAPSE_MODINDEX: false,
          FILE_SUFFIX: '.html'
      };
    </script>
        <script type="text/javascript" src="../_static/jquery.js"></script>
        <script type="text/javascript" src="../_static/underscore.js"></script>
        <script type="text/javascript" src="../_static/doctools.js"></script>
    <script type="text/javascript" src="../_static/init.js"></script>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
        <link rel="copyright" title="Copyright" href="../copyright.html" />
    <link rel="top" title="SQLAlchemy 0.8 Documentation" href="../index.html" />
        <link rel="up" title="Changes and Migration" href="index.html" />
        <link rel="next" title="0.5 Changelog" href="changelog_05.html" />
        <link rel="prev" title="0.7 Changelog" href="changelog_07.html" />

    </head>
    <body>
        










<div id="docs-container">



<div id="docs-header">
    <h1>SQLAlchemy 0.8 Documentation</h1>

    <div id="docs-search">
    Search:
    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" size="18" /> <input type="submit" value="Search" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    </div>

    <div id="docs-version-header">
        Release: <span class="version-num">0.8.2</span> | Release Date: July 3, 2013


    </div>

</div>

<div id="docs-top-navigation">
    <div id="docs-top-page-control" class="docs-navigation-links">
        <ul>
            <li>Prev:
            <a href="changelog_07.html" title="previous chapter">0.7 Changelog</a>
            </li>
            <li>Next:
            <a href="changelog_05.html" title="next chapter">0.5 Changelog</a>
            </li>

        <li>
            <a href="../contents.html">Table of Contents</a> |
            <a href="../genindex.html">Index</a>
            | <a href="../_sources/changelog/changelog_06.txt">view source
        </li>
        </ul>
    </div>

    <div id="docs-navigation-banner">
        <a href="../index.html">SQLAlchemy 0.8 Documentation</a>
                » <a href="index.html" title="Changes and Migration">Changes and Migration</a>
        » 
                0.6 Changelog
             

        <h2>
            
                0.6 Changelog
            
        </h2>
    </div>

</div>

<div id="docs-body-container">

    <div id="docs-sidebar">
    <h3><a href="../index.html">Table of Contents</a></h3>
    <ul>
<li><a class="reference internal" href="#">0.6 Changelog</a><ul>
<li><a class="reference internal" href="#change-0.6.9">0.6.9</a><ul>
<li><a class="reference internal" href="#change-0.6.9-general">general</a></li>
<li><a class="reference internal" href="#change-0.6.9-orm">orm</a></li>
<li><a class="reference internal" href="#change-0.6.9-engine">engine</a></li>
<li><a class="reference internal" href="#change-0.6.9-sql">sql</a></li>
<li><a class="reference internal" href="#change-0.6.9-schema">schema</a></li>
<li><a class="reference internal" href="#change-0.6.9-postgresql">postgresql</a></li>
<li><a class="reference internal" href="#change-0.6.9-mysql">mysql</a></li>
<li><a class="reference internal" href="#change-0.6.9-mssql">mssql</a></li>
<li><a class="reference internal" href="#change-0.6.9-oracle">oracle</a></li>
<li><a class="reference internal" href="#change-0.6.9-misc">misc</a></li>
</ul>
</li>
<li><a class="reference internal" href="#change-0.6.8">0.6.8</a><ul>
<li><a class="reference internal" href="#change-0.6.8-orm">orm</a></li>
<li><a class="reference internal" href="#change-0.6.8-engine">engine</a></li>
<li><a class="reference internal" href="#change-0.6.8-sql">sql</a></li>
<li><a class="reference internal" href="#change-0.6.8-postgresql">postgresql</a></li>
<li><a class="reference internal" href="#change-0.6.8-mssql">mssql</a></li>
</ul>
</li>
<li><a class="reference internal" href="#change-0.6.7">0.6.7</a><ul>
<li><a class="reference internal" href="#change-0.6.7-orm">orm</a></li>
<li><a class="reference internal" href="#change-0.6.7-orm-declarative">orm declarative</a></li>
<li><a class="reference internal" href="#change-0.6.7-engine">engine</a></li>
<li><a class="reference internal" href="#change-0.6.7-sql">sql</a></li>
<li><a class="reference internal" href="#change-0.6.7-postgresql">postgresql</a></li>
<li><a class="reference internal" href="#change-0.6.7-mysql">mysql</a></li>
<li><a class="reference internal" href="#change-0.6.7-sqlite">sqlite</a></li>
<li><a class="reference internal" href="#change-0.6.7-mssql">mssql</a></li>
<li><a class="reference internal" href="#change-0.6.7-oracle">oracle</a></li>
<li><a class="reference internal" href="#change-0.6.7-firebird">firebird</a></li>
<li><a class="reference internal" href="#change-0.6.7-misc">misc</a></li>
</ul>
</li>
<li><a class="reference internal" href="#change-0.6.6">0.6.6</a><ul>
<li><a class="reference internal" href="#change-0.6.6-orm">orm</a></li>
<li><a class="reference internal" href="#change-0.6.6-orm-declarative">orm declarative</a></li>
<li><a class="reference internal" href="#change-0.6.6-engine">engine</a></li>
<li><a class="reference internal" href="#change-0.6.6-sql">sql</a></li>
<li><a class="reference internal" href="#change-0.6.6-postgresql">postgresql</a></li>
<li><a class="reference internal" href="#change-0.6.6-mysql">mysql</a></li>
<li><a class="reference internal" href="#change-0.6.6-sqlite">sqlite</a></li>
<li><a class="reference internal" href="#change-0.6.6-mssql">mssql</a></li>
<li><a class="reference internal" href="#change-0.6.6-oracle">oracle</a></li>
<li><a class="reference internal" href="#change-0.6.6-firebird">firebird</a></li>
<li><a class="reference internal" href="#change-0.6.6-misc">misc</a></li>
</ul>
</li>
<li><a class="reference internal" href="#change-0.6.5">0.6.5</a><ul>
<li><a class="reference internal" href="#change-0.6.5-orm">orm</a></li>
<li><a class="reference internal" href="#change-0.6.5-orm-declarative">orm declarative</a></li>
<li><a class="reference internal" href="#change-0.6.5-engine">engine</a></li>
<li><a class="reference internal" href="#change-0.6.5-sql">sql</a></li>
<li><a class="reference internal" href="#change-0.6.5-postgresql">postgresql</a></li>
<li><a class="reference internal" href="#change-0.6.5-mysql">mysql</a></li>
<li><a class="reference internal" href="#change-0.6.5-mssql">mssql</a></li>
<li><a class="reference internal" href="#change-0.6.5-oracle">oracle</a></li>
<li><a class="reference internal" href="#change-0.6.5-misc">misc</a></li>
</ul>
</li>
<li><a class="reference internal" href="#change-0.6.4">0.6.4</a><ul>
<li><a class="reference internal" href="#change-0.6.4-orm">orm</a></li>
<li><a class="reference internal" href="#change-0.6.4-orm-declarative">orm declarative</a></li>
<li><a class="reference internal" href="#change-0.6.4-engine">engine</a></li>
<li><a class="reference internal" href="#change-0.6.4-sql">sql</a></li>
<li><a class="reference internal" href="#change-0.6.4-postgresql">postgresql</a></li>
<li><a class="reference internal" href="#change-0.6.4-mssql">mssql</a></li>
<li><a class="reference internal" href="#change-0.6.4-oracle">oracle</a></li>
<li><a class="reference internal" href="#change-0.6.4-firebird">firebird</a></li>
<li><a class="reference internal" href="#change-0.6.4-misc">misc</a></li>
</ul>
</li>
<li><a class="reference internal" href="#change-0.6.3">0.6.3</a><ul>
<li><a class="reference internal" href="#change-0.6.3-orm">orm</a></li>
<li><a class="reference internal" href="#change-0.6.3-mysql">mysql</a></li>
<li><a class="reference internal" href="#change-0.6.3-oracle">oracle</a></li>
</ul>
</li>
<li><a class="reference internal" href="#change-0.6.2">0.6.2</a><ul>
<li><a class="reference internal" href="#change-0.6.2-orm">orm</a></li>
<li><a class="reference internal" href="#change-0.6.2-orm-declarative">orm declarative</a></li>
<li><a class="reference internal" href="#change-0.6.2-sql">sql</a></li>
<li><a class="reference internal" href="#change-0.6.2-postgresql">postgresql</a></li>
<li><a class="reference internal" href="#change-0.6.2-mysql">mysql</a></li>
<li><a class="reference internal" href="#change-0.6.2-mssql">mssql</a></li>
<li><a class="reference internal" href="#change-0.6.2-oracle">oracle</a></li>
<li><a class="reference internal" href="#change-0.6.2-firebird">firebird</a></li>
<li><a class="reference internal" href="#change-0.6.2-misc">misc</a></li>
</ul>
</li>
<li><a class="reference internal" href="#change-0.6.1">0.6.1</a><ul>
<li><a class="reference internal" href="#change-0.6.1-orm">orm</a></li>
<li><a class="reference internal" href="#change-0.6.1-sql">sql</a></li>
<li><a class="reference internal" href="#change-0.6.1-mysql">mysql</a></li>
<li><a class="reference internal" href="#change-0.6.1-sqlite">sqlite</a></li>
<li><a class="reference internal" href="#change-0.6.1-oracle">oracle</a></li>
<li><a class="reference internal" href="#change-0.6.1-firebird">firebird</a></li>
<li><a class="reference internal" href="#change-0.6.1-misc">misc</a></li>
</ul>
</li>
<li><a class="reference internal" href="#change-0.6.0">0.6.0</a><ul>
<li><a class="reference internal" href="#change-0.6.0-orm">orm</a></li>
<li><a class="reference internal" href="#change-0.6.0-sql">sql</a></li>
<li><a class="reference internal" href="#change-0.6.0-postgresql">postgresql</a></li>
<li><a class="reference internal" href="#change-0.6.0-oracle">oracle</a></li>
<li><a class="reference internal" href="#change-0.6.0-firebird">firebird</a></li>
<li><a class="reference internal" href="#change-0.6.0-misc">misc</a></li>
</ul>
</li>
<li><a class="reference internal" href="#change-0.6beta3">0.6beta3</a><ul>
<li><a class="reference internal" href="#change-0.6beta3-orm">orm</a></li>
<li><a class="reference internal" href="#change-0.6beta3-orm-declarative">orm declarative</a></li>
<li><a class="reference internal" href="#change-0.6beta3-sql">sql</a></li>
<li><a class="reference internal" href="#change-0.6beta3-postgresql">postgresql</a></li>
<li><a class="reference internal" href="#change-0.6beta3-mysql">mysql</a></li>
<li><a class="reference internal" href="#change-0.6beta3-oracle">oracle</a></li>
<li><a class="reference internal" href="#change-0.6beta3-misc">misc</a></li>
</ul>
</li>
<li><a class="reference internal" href="#change-0.6beta2">0.6beta2</a><ul>
<li><a class="reference internal" href="#change-0.6beta2-orm">orm</a></li>
<li><a class="reference internal" href="#change-0.6beta2-orm-declarative">orm declarative</a></li>
<li><a class="reference internal" href="#change-0.6beta2-sql">sql</a></li>
<li><a class="reference internal" href="#change-0.6beta2-mysql">mysql</a></li>
<li><a class="reference internal" href="#change-0.6beta2-sqlite">sqlite</a></li>
<li><a class="reference internal" href="#change-0.6beta2-mssql">mssql</a></li>
<li><a class="reference internal" href="#change-0.6beta2-oracle">oracle</a></li>
<li><a class="reference internal" href="#change-0.6beta2-misc">misc</a></li>
</ul>
</li>
<li><a class="reference internal" href="#change-0.6beta1">0.6beta1</a><ul>
<li><a class="reference internal" href="#change-0.6beta1-orm">orm</a></li>
<li><a class="reference internal" href="#change-0.6beta1-sql">sql</a></li>
<li><a class="reference internal" href="#change-0.6beta1-schema">schema</a></li>
<li><a class="reference internal" href="#change-0.6beta1-postgresql">postgresql</a></li>
<li><a class="reference internal" href="#change-0.6beta1-mysql">mysql</a></li>
<li><a class="reference internal" href="#change-0.6beta1-sqlite">sqlite</a></li>
<li><a class="reference internal" href="#change-0.6beta1-mssql">mssql</a></li>
<li><a class="reference internal" href="#change-0.6beta1-oracle">oracle</a></li>
<li><a class="reference internal" href="#change-0.6beta1-firebird">firebird</a></li>
<li><a class="reference internal" href="#change-0.6beta1-misc">misc</a></li>
</ul>
</li>
</ul>
</li>
</ul>


    <h4>Previous Topic</h4>
    <p>
    <a href="changelog_07.html" title="previous chapter">0.7 Changelog</a>
    </p>
    <h4>Next Topic</h4>
    <p>
    <a href="changelog_05.html" title="next chapter">0.5 Changelog</a>
    </p>


    <h4>Quick Search</h4>
    <p>
    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" size="18" /> <input type="submit" value="Search" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    </p>

    </div>

    <div id="docs-body" class="withsidebar" >
        
<div class="section" id="changelog">
<h1>0.6 Changelog<a class="headerlink" href="#changelog" title="Permalink to this headline">¶</a></h1>
<div class="section" id="change-0.6.9">
<h2>0.6.9<a class="headerlink" href="#change-0.6.9" title="Permalink to this headline">¶</a></h2>
Released: Sat May 05 2012<div class="section" id="change-0.6.9-general">
<h3>general<a class="headerlink" href="#change-0.6.9-general" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.9-0"><span class="target" id="change-12863cf30d488f3bc66ad4bcfbbf8fd5"><strong>[general] </strong></span>Adjusted the &#8220;importlater&#8221; mechanism, which is
used internally to resolve import cycles,
such that the usage of __import__ is completed
when the import of sqlalchemy or sqlalchemy.orm
is done, thereby avoiding any usage of __import__
after the application starts new threads,
fixes.<a class="changeset-link reference internal" href="#change-12863cf30d488f3bc66ad4bcfbbf8fd5">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2279">#2279</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.9-orm">
<h3>orm<a class="headerlink" href="#change-0.6.9-orm" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.9-1"><span class="target" id="change-90dd35d523894cd2e514049899fa3652"><strong>[orm] [bug] </strong></span>fixed inappropriate evaluation of user-mapped
object in a boolean context within query.get().<a class="changeset-link reference internal" href="#change-90dd35d523894cd2e514049899fa3652">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2310">#2310</a></p>
</p>
</li>
<li><p id="change-0.6.9-2"><span class="target" id="change-48105c68fcefac76f598d7b48e49e120"><strong>[orm] [bug] </strong></span>Fixed the error formatting raised when
a tuple is inadvertently passed to session.query().<a class="changeset-link reference internal" href="#change-48105c68fcefac76f598d7b48e49e120">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2297">#2297</a></p>
</p>
</li>
<li><p id="change-0.6.9-3"><span class="target" id="change-1f18f8d75432f09d5bbc6ac09e88b038"><strong>[orm] </strong></span>Fixed bug whereby the source clause
used by query.join() would be inconsistent
if against a column expression that combined
multiple entities together.<a class="changeset-link reference internal" href="#change-1f18f8d75432f09d5bbc6ac09e88b038">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2197">#2197</a></p>
</p>
</li>
<li><p id="change-0.6.9-4"><span class="target" id="change-bec888b1020a652a9d416e4e6b261a7e"><strong>[orm] </strong></span>Fixed bug apparent only in Python 3 whereby
sorting of persistent + pending objects during
flush would produce an illegal comparison,
if the persistent object primary key
is not a single integer.<a class="changeset-link reference internal" href="#change-bec888b1020a652a9d416e4e6b261a7e">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2228">#2228</a></p>
</p>
</li>
<li><p id="change-0.6.9-5"><span class="target" id="change-dad2fbaff0f9f5aa2ebbcf509ad408a3"><strong>[orm] </strong></span>Fixed bug where query.join() + aliased=True
from a joined-inh structure to itself on
relationship() with join condition on the child
table would convert the lead entity into the
joined one inappropriately.<a class="changeset-link reference internal" href="#change-dad2fbaff0f9f5aa2ebbcf509ad408a3">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2234">#2234</a></p>
</p>
</li>
<li><p id="change-0.6.9-6"><span class="target" id="change-12f7542f530a786aa0c66534c7a55317"><strong>[orm] </strong></span>Fixed bug whereby mapper.order_by attribute would
be ignored in the &#8220;inner&#8221; query within a
subquery eager load. .<a class="changeset-link reference internal" href="#change-12f7542f530a786aa0c66534c7a55317">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2287">#2287</a></p>
</p>
</li>
<li><p id="change-0.6.9-7"><span class="target" id="change-324c9d754e04e96958acbba0a3dc83ec"><strong>[orm] </strong></span>Fixed bug whereby if a mapped class
redefined __hash__() or __eq__() to something
non-standard, which is a supported use case
as SQLA should never consult these,
the methods would be consulted if the class
was part of a &#8220;composite&#8221; (i.e. non-single-entity)
result set.<a class="changeset-link reference internal" href="#change-324c9d754e04e96958acbba0a3dc83ec">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2215">#2215</a></p>
</p>
</li>
<li><p id="change-0.6.9-8"><span class="target" id="change-ccbce1aaf7fc09560215d0f41426e87e"><strong>[orm] </strong></span>Fixed subtle bug that caused SQL to blow
up if: column_property() against subquery +
joinedload + LIMIT + order by the column
property() occurred. .<a class="changeset-link reference internal" href="#change-ccbce1aaf7fc09560215d0f41426e87e">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2188">#2188</a></p>
</p>
</li>
<li><p id="change-0.6.9-9"><span class="target" id="change-18699e5af1eae1a1ce72667d2f948b1f"><strong>[orm] </strong></span>The join condition produced by with_parent
as well as when using a &#8220;dynamic&#8221; relationship
against a parent will generate unique
bindparams, rather than incorrectly repeating
the same bindparam. .<a class="changeset-link reference internal" href="#change-18699e5af1eae1a1ce72667d2f948b1f">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2207">#2207</a></p>
</p>
</li>
<li><p id="change-0.6.9-10"><span class="target" id="change-c0fbe0ad615ed9a900a904e02ea5ecd8"><strong>[orm] </strong></span>Repaired the &#8220;no statement condition&#8221;
assertion in Query which would attempt
to raise if a generative method were called
after from_statement() were called..<a class="changeset-link reference internal" href="#change-c0fbe0ad615ed9a900a904e02ea5ecd8">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2199">#2199</a></p>
</p>
</li>
<li><p id="change-0.6.9-11"><span class="target" id="change-91ff76e5a82e6e129deb5a0cad60796d"><strong>[orm] </strong></span>Cls.column.collate(&#8220;some collation&#8221;) now
works.<a class="changeset-link reference internal" href="#change-91ff76e5a82e6e129deb5a0cad60796d">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1776">#1776</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.9-engine">
<h3>engine<a class="headerlink" href="#change-0.6.9-engine" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.9-12"><span class="target" id="change-7da4cdf9f79cae9743a85d40954ac411"><strong>[engine] </strong></span>Backported the fix for introduced
in 0.7.4, which ensures that the connection
is in a valid state before attempting to call
rollback()/prepare()/release() on savepoint
and two-phase transactions.<a class="changeset-link reference internal" href="#change-7da4cdf9f79cae9743a85d40954ac411">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2317">#2317</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.9-sql">
<h3>sql<a class="headerlink" href="#change-0.6.9-sql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.9-13"><span class="target" id="change-d49c6908f106df0a29516c49cddab3c2"><strong>[sql] </strong></span>Fixed two subtle bugs involving column
correspondence in a selectable,
one with the same labeled subquery repeated, the other
when the label has been &#8220;grouped&#8221; and
loses itself.  Affects.<a class="changeset-link reference internal" href="#change-d49c6908f106df0a29516c49cddab3c2">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2188">#2188</a></p>
</p>
</li>
<li><p id="change-0.6.9-14"><span class="target" id="change-08b55ba78d7b3fa1a51925aecafe255b"><strong>[sql] </strong></span>Fixed bug whereby &#8220;warn on unicode&#8221; flag
would get set for the String type
when used with certain dialects.  This
bug is not in 0.7.<a class="changeset-link reference internal" href="#change-08b55ba78d7b3fa1a51925aecafe255b">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.9-15"><span class="target" id="change-1897da4753826ae9d5eacb9bce3c482f"><strong>[sql] </strong></span>Fixed bug whereby with_only_columns() method of
Select would fail if a selectable were passed..   However, the FROM behavior is
still incorrect here, so you need 0.7 in
any case for this use case to be usable.<a class="changeset-link reference internal" href="#change-1897da4753826ae9d5eacb9bce3c482f">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2270">#2270</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.9-schema">
<h3>schema<a class="headerlink" href="#change-0.6.9-schema" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.9-16"><span class="target" id="change-0d0176936941374dd977d3cfc229ea75"><strong>[schema] </strong></span>Added an informative error message when
ForeignKeyConstraint refers to a column name in
the parent that is not found.<a class="changeset-link reference internal" href="#change-0d0176936941374dd977d3cfc229ea75">(link)</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.9-postgresql">
<h3>postgresql<a class="headerlink" href="#change-0.6.9-postgresql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.9-17"><span class="target" id="change-525baeb589c68e1d82ba3a075efda6a4"><strong>[postgresql] </strong></span>Fixed bug related to whereby the
same modified index behavior in PG 9 affected
primary key reflection on a renamed column..<a class="changeset-link reference internal" href="#change-525baeb589c68e1d82ba3a075efda6a4">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2291">#2291</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2141">#2141</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.9-mysql">
<h3>mysql<a class="headerlink" href="#change-0.6.9-mysql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.9-18"><span class="target" id="change-0698928580db2e78fa0bf2b5d0fb757a"><strong>[mysql] </strong></span>Fixed OurSQL dialect to use ansi-neutral
quote symbol &#8220;&#8217;&#8221; for XA commands instead
of &#8216;&#8221;&#8217;. .<a class="changeset-link reference internal" href="#change-0698928580db2e78fa0bf2b5d0fb757a">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2186">#2186</a></p>
</p>
</li>
<li><p id="change-0.6.9-19"><span class="target" id="change-893dc29708dfe84565bb6b59ebc5d116"><strong>[mysql] </strong></span>a CREATE TABLE will put the COLLATE option
after CHARSET, which appears to be part of
MySQL&#8217;s arbitrary rules regarding if it will actually
work or not.<a class="changeset-link reference internal" href="#change-893dc29708dfe84565bb6b59ebc5d116">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2225">#2225</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.9-mssql">
<h3>mssql<a class="headerlink" href="#change-0.6.9-mssql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.9-20"><span class="target" id="change-2ca5517878da9a4646159611f7fadfd5"><strong>[mssql] [bug] </strong></span>Decode incoming values when retrieving
list of index names and the names of columns
within those indexes.<a class="changeset-link reference internal" href="#change-2ca5517878da9a4646159611f7fadfd5">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2269">#2269</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.9-oracle">
<h3>oracle<a class="headerlink" href="#change-0.6.9-oracle" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.9-21"><span class="target" id="change-a0976892727bd6ce76216c086a0e73cf"><strong>[oracle] </strong></span>Added ORA-00028 to disconnect codes, use
cx_oracle _Error.code to get at the code,.<a class="changeset-link reference internal" href="#change-a0976892727bd6ce76216c086a0e73cf">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2200">#2200</a></p>
</p>
</li>
<li><p id="change-0.6.9-22"><span class="target" id="change-c9c4f1305df1aa628e2d4f756511f177"><strong>[oracle] </strong></span>repaired the oracle.RAW type which did not
generate the correct DDL.<a class="changeset-link reference internal" href="#change-c9c4f1305df1aa628e2d4f756511f177">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2220">#2220</a></p>
</p>
</li>
<li><p id="change-0.6.9-23"><span class="target" id="change-eda1d903a91584d2894e843edeb325ce"><strong>[oracle] </strong></span>added CURRENT to reserved word list.<a class="changeset-link reference internal" href="#change-eda1d903a91584d2894e843edeb325ce">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2212">#2212</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.9-misc">
<h3>misc<a class="headerlink" href="#change-0.6.9-misc" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.9-24"><span class="target" id="change-876cb8fb1ac9a1ba6772001f2b81829e"><strong>[examples] </strong></span>Adjusted dictlike-polymorphic.py example
to apply the CAST such that it works on
PG, other databases.<a class="changeset-link reference internal" href="#change-876cb8fb1ac9a1ba6772001f2b81829e">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2266">#2266</a></p>
</p>
</li>
</ul>
</div>
</div>
<div class="section" id="change-0.6.8">
<h2>0.6.8<a class="headerlink" href="#change-0.6.8" title="Permalink to this headline">¶</a></h2>
Released: Sun Jun 05 2011<div class="section" id="change-0.6.8-orm">
<h3>orm<a class="headerlink" href="#change-0.6.8-orm" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.8-0"><span class="target" id="change-5211656e5b9bab3746a031467f734f52"><strong>[orm] </strong></span>Calling query.get() against a column-based entity is
invalid, this condition now raises a deprecation warning.<a class="changeset-link reference internal" href="#change-5211656e5b9bab3746a031467f734f52">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2144">#2144</a></p>
</p>
</li>
<li><p id="change-0.6.8-1"><span class="target" id="change-1bb5eb9cd9ead7741537faf42dbb717a"><strong>[orm] </strong></span>a non_primary mapper will inherit the _identity_class
of the primary mapper.  This so that a non_primary
established against a class that&#8217;s normally in an
inheritance mapping will produce results that are
identity-map compatible with that of the primary
mapper<a class="changeset-link reference internal" href="#change-1bb5eb9cd9ead7741537faf42dbb717a">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2151">#2151</a></p>
</p>
</li>
<li><p id="change-0.6.8-2"><span class="target" id="change-d26ba3de23d7c188bace06d868980bdd"><strong>[orm] </strong></span>Backported 0.7&#8217;s identity map implementation, which
does not use a mutex around removal.  This as some users
were still getting deadlocks despite the adjustments
in 0.6.7; the 0.7 approach that doesn&#8217;t use a mutex
does not appear to produce &#8220;dictionary changed size&#8221;
issues, the original rationale for the mutex.<a class="changeset-link reference internal" href="#change-d26ba3de23d7c188bace06d868980bdd">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2148">#2148</a></p>
</p>
</li>
<li><p id="change-0.6.8-3"><span class="target" id="change-7a589ce2e13c9008b3def2fd5a90ac23"><strong>[orm] </strong></span>Fixed the error message emitted for &#8220;can&#8217;t
execute syncrule for destination column &#8216;q&#8217;;
mapper &#8216;X&#8217; does not map this column&#8221; to
reference the correct mapper. .<a class="changeset-link reference internal" href="#change-7a589ce2e13c9008b3def2fd5a90ac23">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2163">#2163</a></p>
</p>
</li>
<li><p id="change-0.6.8-4"><span class="target" id="change-fa833bfebba673a74e3bda247932e868"><strong>[orm] </strong></span>Fixed bug where determination of &#8220;self referential&#8221;
relationship would fail with no workaround
for joined-inh subclass related to itself,
or joined-inh subclass related to a subclass
of that with no cols in the sub-sub class
in the join condition.<a class="changeset-link reference internal" href="#change-fa833bfebba673a74e3bda247932e868">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2149">#2149</a></p>
</p>
</li>
<li><p id="change-0.6.8-5"><span class="target" id="change-ffe3e5b094cad44312444477b1d9c3b5"><strong>[orm] </strong></span>mapper() will ignore non-configured foreign keys
to unrelated tables when determining inherit
condition between parent and child class.
This is equivalent to behavior already
applied to declarative.  Note that 0.7 has a
more comprehensive solution to this, altering
how join() itself determines an FK error.<a class="changeset-link reference internal" href="#change-ffe3e5b094cad44312444477b1d9c3b5">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2153">#2153</a></p>
</p>
</li>
<li><p id="change-0.6.8-6"><span class="target" id="change-e86ab075b7ef34298069ec75797e7bd8"><strong>[orm] </strong></span>Fixed bug whereby mapper mapped to an anonymous
alias would fail if logging were used, due to
unescaped % sign in the alias name.<a class="changeset-link reference internal" href="#change-e86ab075b7ef34298069ec75797e7bd8">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2171">#2171</a></p>
</p>
</li>
<li><p id="change-0.6.8-7"><span class="target" id="change-90aba29b5bd34a14cf4fa753d35659ee"><strong>[orm] </strong></span>Modify the text of the message which occurs
when the &#8220;identity&#8221; key isn&#8217;t detected on
flush, to include the common cause that
the Column isn&#8217;t set up to detect
auto-increment correctly;.<a class="changeset-link reference internal" href="#change-90aba29b5bd34a14cf4fa753d35659ee">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2170">#2170</a></p>
</p>
</li>
<li><p id="change-0.6.8-8"><span class="target" id="change-2f30675b878168f0ac612120144c8b76"><strong>[orm] </strong></span>Fixed bug where transaction-level &#8220;deleted&#8221;
collection wouldn&#8217;t be cleared of expunged
states, raising an error if they later
became transient.<a class="changeset-link reference internal" href="#change-2f30675b878168f0ac612120144c8b76">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2182">#2182</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.8-engine">
<h3>engine<a class="headerlink" href="#change-0.6.8-engine" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.8-9"><span class="target" id="change-81e707c0cdab968a06ef47f7b2d2940e"><strong>[engine] </strong></span>Adjusted the __contains__() method of
a RowProxy result row such that no exception
throw is generated internally;
NoSuchColumnError() also will generate its
message regardless of whether or not the column
construct can be coerced to a string..<a class="changeset-link reference internal" href="#change-81e707c0cdab968a06ef47f7b2d2940e">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2178">#2178</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.8-sql">
<h3>sql<a class="headerlink" href="#change-0.6.8-sql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.8-10"><span class="target" id="change-d38c459e931e28a7c7cd6e4a62af4849"><strong>[sql] </strong></span>Fixed bug whereby if FetchedValue was passed
to column server_onupdate, it would not
have its parent &#8220;column&#8221; assigned, added
test coverage for all column default assignment
patterns.<a class="changeset-link reference internal" href="#change-d38c459e931e28a7c7cd6e4a62af4849">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2147">#2147</a></p>
</p>
</li>
<li><p id="change-0.6.8-11"><span class="target" id="change-2ae59c579c4c2ced22f234c933eedb03"><strong>[sql] </strong></span>Fixed bug whereby nesting a label of a select()
with another label in it would produce incorrect
exported columns.   Among other things this would
break an ORM column_property() mapping against
another column_property(). .<a class="changeset-link reference internal" href="#change-2ae59c579c4c2ced22f234c933eedb03">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2167">#2167</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.8-postgresql">
<h3>postgresql<a class="headerlink" href="#change-0.6.8-postgresql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.8-12"><span class="target" id="change-d7f16be247c5f9c9413e70ca6d68a835"><strong>[postgresql] </strong></span>Fixed bug affecting PG 9 whereby index reflection
would fail if against a column whose name
had changed. .<a class="changeset-link reference internal" href="#change-d7f16be247c5f9c9413e70ca6d68a835">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2141">#2141</a></p>
</p>
</li>
<li><p id="change-0.6.8-13"><span class="target" id="change-5fb3b20bf3b31a34fb78d3340bf1dcd1"><strong>[postgresql] </strong></span>Some unit test fixes regarding numeric arrays,
MATCH operator.   A potential floating-point
inaccuracy issue was fixed, and certain tests
of the MATCH operator only execute within an
EN-oriented locale for now. .<a class="changeset-link reference internal" href="#change-5fb3b20bf3b31a34fb78d3340bf1dcd1">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2175">#2175</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.8-mssql">
<h3>mssql<a class="headerlink" href="#change-0.6.8-mssql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.8-14"><span class="target" id="change-c07b8fa79245c2fb7647120e9fe7d228"><strong>[mssql] </strong></span>Fixed bug in MSSQL dialect whereby the aliasing
applied to a schema-qualified table would leak
into enclosing select statements.<a class="changeset-link reference internal" href="#change-c07b8fa79245c2fb7647120e9fe7d228">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2169">#2169</a></p>
</p>
</li>
<li><p id="change-0.6.8-15"><span class="target" id="change-6e28260bf17c92850ac3773eda0fe105"><strong>[mssql] </strong></span>Fixed bug whereby DATETIME2 type would fail on
the &#8220;adapt&#8221; step when used in result sets or
bound parameters.  This issue is not in 0.7.<a class="changeset-link reference internal" href="#change-6e28260bf17c92850ac3773eda0fe105">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2159">#2159</a></p>
</p>
</li>
</ul>
</div>
</div>
<div class="section" id="change-0.6.7">
<h2>0.6.7<a class="headerlink" href="#change-0.6.7" title="Permalink to this headline">¶</a></h2>
Released: Wed Apr 13 2011<div class="section" id="change-0.6.7-orm">
<h3>orm<a class="headerlink" href="#change-0.6.7-orm" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.7-0"><span class="target" id="change-eed859bebcbe8988e1d4cc3b30ebc835"><strong>[orm] </strong></span>Tightened the iterate vs. remove mutex around the
identity map iteration, attempting to reduce the
chance of an (extremely rare) reentrant gc operation
causing a deadlock.  Might remove the mutex in
0.7.<a class="changeset-link reference internal" href="#change-eed859bebcbe8988e1d4cc3b30ebc835">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2087">#2087</a></p>
</p>
</li>
<li><p id="change-0.6.7-1"><span class="target" id="change-857bb51b7ea179692c74f9266bdba26d"><strong>[orm] </strong></span>Added a <cite>name</cite> argument to <cite>Query.subquery()</cite>, to allow
a fixed name to be assigned to the alias object.<a class="changeset-link reference internal" href="#change-857bb51b7ea179692c74f9266bdba26d">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2030">#2030</a></p>
</p>
</li>
<li><p id="change-0.6.7-2"><span class="target" id="change-4363d0760126c3a958074eb1490c4919"><strong>[orm] </strong></span>A warning is emitted when a joined-table inheriting mapper
has no primary keys on the locally mapped table
(but has pks on the superclass table).<a class="changeset-link reference internal" href="#change-4363d0760126c3a958074eb1490c4919">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2019">#2019</a></p>
</p>
</li>
<li><p id="change-0.6.7-3"><span class="target" id="change-b9b208bc91c2102e8f0fd7911db16925"><strong>[orm] </strong></span>Fixed bug where &#8220;middle&#8221; class in a polymorphic hierarchy
would have no &#8216;polymorphic_on&#8217; column if it didn&#8217;t also
specify a &#8216;polymorphic_identity&#8217;, leading to strange
errors upon refresh, wrong class loaded when querying
from that target. Also emits the correct WHERE criterion
when using single table inheritance.<a class="changeset-link reference internal" href="#change-b9b208bc91c2102e8f0fd7911db16925">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2038">#2038</a></p>
</p>
</li>
<li><p id="change-0.6.7-4"><span class="target" id="change-a2fb7de3c9754e79e857eab068d7e269"><strong>[orm] </strong></span>Fixed bug where a column with a SQL or server side default
that was excluded from a mapping with include_properties
or exclude_properties would result in UnmappedColumnError.<a class="changeset-link reference internal" href="#change-a2fb7de3c9754e79e857eab068d7e269">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1995">#1995</a></p>
</p>
</li>
<li><p id="change-0.6.7-5"><span class="target" id="change-2c07178fa8d7673418fa3709242f8faf"><strong>[orm] </strong></span>A warning is emitted in the unusual case that an
append or similar event on a collection occurs after
the parent object has been dereferenced, which
prevents the parent from being marked as &#8220;dirty&#8221;
in the session.  This will be an exception in 0.7.<a class="changeset-link reference internal" href="#change-2c07178fa8d7673418fa3709242f8faf">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2046">#2046</a></p>
</p>
</li>
<li><p id="change-0.6.7-6"><span class="target" id="change-59c721c9c15d94a562e9083c84012937"><strong>[orm] </strong></span>Fixed bug in query.options() whereby a path
applied to a lazyload using string keys could
overlap a same named attribute on the wrong
entity.  Note 0.7 has an updated version of this
fix.<a class="changeset-link reference internal" href="#change-59c721c9c15d94a562e9083c84012937">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2098">#2098</a></p>
</p>
</li>
<li><p id="change-0.6.7-7"><span class="target" id="change-5e7605de1fa0c84b6669ddade822cb51"><strong>[orm] </strong></span>Reworded the exception raised when a flush
is attempted of a subclass that is not polymorphic
against the supertype.<a class="changeset-link reference internal" href="#change-5e7605de1fa0c84b6669ddade822cb51">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2063">#2063</a></p>
</p>
</li>
<li><p id="change-0.6.7-8"><span class="target" id="change-8d18a5abb18ac58c0bfa0091638be48f"><strong>[orm] </strong></span>Some fixes to the state handling regarding
backrefs, typically when autoflush=False, where
the back-referenced collection wouldn&#8217;t
properly handle add/removes with no net
change.  Thanks to Richard Murri for the
test case + patch.<a class="changeset-link reference internal" href="#change-8d18a5abb18ac58c0bfa0091638be48f">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2123">#2123</a></p>
</p>
</li>
<li><p id="change-0.6.7-9"><span class="target" id="change-060dd78afd33881d181eec9588947add"><strong>[orm] </strong></span>a &#8220;having&#8221; clause would be copied from the
inside to the outside query if from_self()
were used..<a class="changeset-link reference internal" href="#change-060dd78afd33881d181eec9588947add">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2130">#2130</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.7-orm-declarative">
<h3>orm declarative<a class="headerlink" href="#change-0.6.7-orm-declarative" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.7-10"><span class="target" id="change-d38e96868aa208c878f6a399209baa56"><strong>[declarative] [orm] </strong></span>Added an explicit check for the case that the name
&#8216;metadata&#8217; is used for a column attribute on a
declarative class.<a class="changeset-link reference internal" href="#change-d38e96868aa208c878f6a399209baa56">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2050">#2050</a></p>
</p>
</li>
<li><p id="change-0.6.7-11"><span class="target" id="change-04df06651398c4cc53b0100d0d7392f7"><strong>[declarative] [orm] </strong></span>Fix error message referencing old &#64;classproperty
name to reference &#64;declared_attr<a class="changeset-link reference internal" href="#change-04df06651398c4cc53b0100d0d7392f7">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2061">#2061</a></p>
</p>
</li>
<li><p id="change-0.6.7-12"><span class="target" id="change-5a35bc6fcdaed2657acdf3a146f57944"><strong>[declarative] [orm] </strong></span>Arguments in __mapper_args__ that aren&#8217;t &#8220;hashable&#8221;
aren&#8217;t mistaken for always-hashable, possibly-column
arguments.<a class="changeset-link reference internal" href="#change-5a35bc6fcdaed2657acdf3a146f57944">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2091">#2091</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.7-engine">
<h3>engine<a class="headerlink" href="#change-0.6.7-engine" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.7-13"><span class="target" id="change-47dcc1090d3314545b6a9690f9d74116"><strong>[engine] </strong></span>Fixed bug in QueuePool, SingletonThreadPool whereby
connections that were discarded via overflow or periodic
cleanup() were not explicitly closed, leaving garbage
collection to the task instead.   This generally only
affects non-reference-counting backends like Jython
and Pypy.  Thanks to Jaimy Azle for spotting
this.<a class="changeset-link reference internal" href="#change-47dcc1090d3314545b6a9690f9d74116">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2102">#2102</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.7-sql">
<h3>sql<a class="headerlink" href="#change-0.6.7-sql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.7-14"><span class="target" id="change-a275b5bc06266dc2cdf5221ac4efa4ae"><strong>[sql] </strong></span>Column.copy(), as used in table.tometadata(), copies the
&#8216;doc&#8217; attribute.<a class="changeset-link reference internal" href="#change-a275b5bc06266dc2cdf5221ac4efa4ae">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2028">#2028</a></p>
</p>
</li>
<li><p id="change-0.6.7-15"><span class="target" id="change-ad5304b19826c1a70051cdf7b77c35bc"><strong>[sql] </strong></span>Added some defs to the resultproxy.c extension so that
the extension compiles and runs on Python 2.4.<a class="changeset-link reference internal" href="#change-ad5304b19826c1a70051cdf7b77c35bc">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2023">#2023</a></p>
</p>
</li>
<li><p id="change-0.6.7-16"><span class="target" id="change-5a0bb2e6701ec13c1651c09ef85839e5"><strong>[sql] </strong></span>The compiler extension now supports overriding the default
compilation of expression._BindParamClause including that
the auto-generated binds within the VALUES/SET clause
of an insert()/update() statement will also use the new
compilation rules.<a class="changeset-link reference internal" href="#change-5a0bb2e6701ec13c1651c09ef85839e5">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2042">#2042</a></p>
</p>
</li>
<li><p id="change-0.6.7-17"><span class="target" id="change-cd2a42bedeaff3d6db0e9583c7366c01"><strong>[sql] </strong></span>Added accessors to ResultProxy &#8220;returns_rows&#8221;, &#8220;is_insert&#8221;<a class="changeset-link reference internal" href="#change-cd2a42bedeaff3d6db0e9583c7366c01">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2089">#2089</a></p>
</p>
</li>
<li><p id="change-0.6.7-18"><span class="target" id="change-2f014c320217753b2e7338e74b17e074"><strong>[sql] </strong></span>The limit/offset keywords to select() as well
as the value passed to select.limit()/offset()
will be coerced to integer.<a class="changeset-link reference internal" href="#change-2f014c320217753b2e7338e74b17e074">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2116">#2116</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.7-postgresql">
<h3>postgresql<a class="headerlink" href="#change-0.6.7-postgresql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.7-19"><span class="target" id="change-ab73a9ae528ee69666fab4ec822db451"><strong>[postgresql] </strong></span>When explicit sequence execution derives the name
of the auto-generated sequence of a SERIAL column,
which currently only occurs if implicit_returning=False,
now accommodates if the table + column name is greater
than 63 characters using the same logic Postgresql uses.<a class="changeset-link reference internal" href="#change-ab73a9ae528ee69666fab4ec822db451">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1083">#1083</a></p>
</p>
</li>
<li><p id="change-0.6.7-20"><span class="target" id="change-0d9b1d5d5cbdcb0ca647c9b409c42200"><strong>[postgresql] </strong></span>Added an additional libpq message to the list of &#8220;disconnect&#8221;
exceptions, &#8220;could not receive data from server&#8221;<a class="changeset-link reference internal" href="#change-0d9b1d5d5cbdcb0ca647c9b409c42200">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2044">#2044</a></p>
</p>
</li>
<li><p id="change-0.6.7-21"><span class="target" id="change-934e48213c937d20f95930337f7e57e9"><strong>[postgresql] </strong></span>Added RESERVED_WORDS for postgresql dialect.<a class="changeset-link reference internal" href="#change-934e48213c937d20f95930337f7e57e9">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2092">#2092</a></p>
</p>
</li>
<li><p id="change-0.6.7-22"><span class="target" id="change-9afcfc7fa95e4d1c05cc91e90f14074b"><strong>[postgresql] </strong></span>Fixed the BIT type to allow a &#8220;length&#8221; parameter, &#8220;varying&#8221;
parameter.  Reflection also fixed.<a class="changeset-link reference internal" href="#change-9afcfc7fa95e4d1c05cc91e90f14074b">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2073">#2073</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.7-mysql">
<h3>mysql<a class="headerlink" href="#change-0.6.7-mysql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.7-23"><span class="target" id="change-694da80c3029deb8ea396e5708b75604"><strong>[mysql] </strong></span>oursql dialect accepts the same &#8220;ssl&#8221; arguments in
create_engine() as that of MySQLdb.<a class="changeset-link reference internal" href="#change-694da80c3029deb8ea396e5708b75604">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2047">#2047</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.7-sqlite">
<h3>sqlite<a class="headerlink" href="#change-0.6.7-sqlite" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.7-24"><span class="target" id="change-ed6a6e71dbdafae0b4f6e0831116d94f"><strong>[sqlite] </strong></span>Fixed bug where reflection of foreign key
created as &#8220;REFERENCES &lt;tablename&gt;&#8221; without
col name would fail.<a class="changeset-link reference internal" href="#change-ed6a6e71dbdafae0b4f6e0831116d94f">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2115">#2115</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.7-mssql">
<h3>mssql<a class="headerlink" href="#change-0.6.7-mssql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.7-25"><span class="target" id="change-abb1e8cdc1c90914b2196c74eeb32842"><strong>[mssql] </strong></span>Rewrote the query used to get the definition of a view,
typically when using the Inspector interface, to
use sys.sql_modules instead of the information schema,
thereby allowing views definitions longer than 4000
characters to be fully returned.<a class="changeset-link reference internal" href="#change-abb1e8cdc1c90914b2196c74eeb32842">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2071">#2071</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.7-oracle">
<h3>oracle<a class="headerlink" href="#change-0.6.7-oracle" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.7-26"><span class="target" id="change-52cfc9b390aeab5dad8108be21fb6c91"><strong>[oracle] </strong></span>Using column names that would require quotes
for the column itself or for a name-generated
bind parameter, such as names with special
characters, underscores, non-ascii characters,
now properly translate bind parameter keys when
talking to cx_oracle.<a class="changeset-link reference internal" href="#change-52cfc9b390aeab5dad8108be21fb6c91">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2100">#2100</a></p>
</p>
</li>
<li><p id="change-0.6.7-27"><span class="target" id="change-a0b34ccb9b1535f2c510607844e32242"><strong>[oracle] </strong></span>Oracle dialect adds use_binds_for_limits=False
create_engine() flag, will render the LIMIT/OFFSET
values inline instead of as binds, reported to
modify the execution plan used by Oracle.<a class="changeset-link reference internal" href="#change-a0b34ccb9b1535f2c510607844e32242">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2116">#2116</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.7-firebird">
<h3>firebird<a class="headerlink" href="#change-0.6.7-firebird" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.7-28"><span class="target" id="change-c7435c028a162f66ad2348bf1b312568"><strong>[firebird] </strong></span>The &#8220;implicit_returning&#8221; flag on create_engine() is
honored if set to False.<a class="changeset-link reference internal" href="#change-c7435c028a162f66ad2348bf1b312568">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2083">#2083</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.7-misc">
<h3>misc<a class="headerlink" href="#change-0.6.7-misc" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.7-29"><span class="target" id="change-a13940d4af6ee75c1a62ada363719185"><strong>[informix] </strong></span>Added RESERVED_WORDS informix dialect.<a class="changeset-link reference internal" href="#change-a13940d4af6ee75c1a62ada363719185">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2092">#2092</a></p>
</p>
</li>
<li><p id="change-0.6.7-30"><span class="target" id="change-1f8f8c315ffd15103961e7340c643cf5"><strong>[ext] </strong></span>The horizontal_shard ShardedSession class accepts the common
Session argument &#8220;query_cls&#8221; as a constructor argument,
to enable further subclassing of ShardedQuery.<a class="changeset-link reference internal" href="#change-1f8f8c315ffd15103961e7340c643cf5">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2090">#2090</a></p>
</p>
</li>
<li><p id="change-0.6.7-31"><span class="target" id="change-4d5a071f11cdecd01c76f3e46df9a46b"><strong>[documentation] </strong></span>Documented SQLite DATE/TIME/DATETIME types.<a class="changeset-link reference internal" href="#change-4d5a071f11cdecd01c76f3e46df9a46b">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2029">#2029</a></p>
</p>
</li>
<li><p id="change-0.6.7-32"><span class="target" id="change-6ad83653aed5df61bea17b14bda619f6"><strong>[examples] </strong></span>The Beaker caching example allows a &#8220;query_cls&#8221; argument
to the query_callable() function.<a class="changeset-link reference internal" href="#change-6ad83653aed5df61bea17b14bda619f6">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2090">#2090</a></p>
</p>
</li>
</ul>
</div>
</div>
<div class="section" id="change-0.6.6">
<h2>0.6.6<a class="headerlink" href="#change-0.6.6" title="Permalink to this headline">¶</a></h2>
Released: Sat Jan 08 2011<div class="section" id="change-0.6.6-orm">
<h3>orm<a class="headerlink" href="#change-0.6.6-orm" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.6-0"><span class="target" id="change-73d44895e2706b7e163324b206400f33"><strong>[orm] </strong></span>Fixed bug whereby a non-&#8220;mutable&#8221; attribute modified event
which occurred on an object that was clean except for
preceding mutable attribute changes would fail to strongly
reference itself in the identity map. This would cause the
object to be garbage collected, losing track of any changes
that weren&#8217;t previously saved in the &#8220;mutable changes&#8221;
dictionary.<a class="changeset-link reference internal" href="#change-73d44895e2706b7e163324b206400f33">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.6-1"><span class="target" id="change-cc7c109cd2e5f972d7c361a19e549015"><strong>[orm] </strong></span>Fixed bug whereby &#8220;passive_deletes=&#8217;all&#8217;&#8221; wasn&#8217;t passing
the correct symbols to lazy loaders during flush, thereby
causing an unwarranted load.<a class="changeset-link reference internal" href="#change-cc7c109cd2e5f972d7c361a19e549015">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2013">#2013</a></p>
</p>
</li>
<li><p id="change-0.6.6-2"><span class="target" id="change-a06e3ac0ceb000a16fd9ccd8151858a9"><strong>[orm] </strong></span>Fixed bug which prevented composite mapped
attributes from being used on a mapped select statement.. Note the workings of composite are slated to
change significantly in 0.7.<a class="changeset-link reference internal" href="#change-a06e3ac0ceb000a16fd9ccd8151858a9">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1997">#1997</a></p>
</p>
</li>
<li><p id="change-0.6.6-3"><span class="target" id="change-78f279b93ff41fe6f4e382ab7a39d1dc"><strong>[orm] </strong></span>active_history flag also added to composite().
The flag has no effect in 0.6, but is instead
a placeholder flag for forwards compatibility,
as it applies in 0.7 for composites.<a class="changeset-link reference internal" href="#change-78f279b93ff41fe6f4e382ab7a39d1dc">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1976">#1976</a></p>
</p>
</li>
<li><p id="change-0.6.6-4"><span class="target" id="change-e583324a8feefce60c8c25f58fb1489c"><strong>[orm] </strong></span>Fixed uow bug whereby expired objects passed to
Session.delete() would not have unloaded references
or collections taken into account when deleting
objects, despite passive_deletes remaining at
its default of False.<a class="changeset-link reference internal" href="#change-e583324a8feefce60c8c25f58fb1489c">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2002">#2002</a></p>
</p>
</li>
<li><p id="change-0.6.6-5"><span class="target" id="change-24a0a0f1cefec7af7929abec55c2677d"><strong>[orm] </strong></span>A warning is emitted when version_id_col is specified
on an inheriting mapper when the inherited mapper
already has one, if those column expressions are not
the same.<a class="changeset-link reference internal" href="#change-24a0a0f1cefec7af7929abec55c2677d">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1987">#1987</a></p>
</p>
</li>
<li><p id="change-0.6.6-6"><span class="target" id="change-950897823db98ee106b0d8ae719faea0"><strong>[orm] </strong></span>&#8220;innerjoin&#8221; flag doesn&#8217;t take effect along the chain
of joinedload() joins if a previous join in that chain
is an outer join, thus allowing primary rows without
a referenced child row to be correctly returned
in results.<a class="changeset-link reference internal" href="#change-950897823db98ee106b0d8ae719faea0">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1954">#1954</a></p>
</p>
</li>
<li><p id="change-0.6.6-7"><span class="target" id="change-0a61da9c990ed25523ab57b8e6ff715f"><strong>[orm] </strong></span>Fixed bug regarding &#8220;subqueryload&#8221; strategy whereby
strategy would fail if the entity was an aliased()
construct.<a class="changeset-link reference internal" href="#change-0a61da9c990ed25523ab57b8e6ff715f">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1964">#1964</a></p>
</p>
</li>
<li><p id="change-0.6.6-8"><span class="target" id="change-1703b90dcfd7ffd0b4f81bcbb70c3d44"><strong>[orm] </strong></span>Fixed bug regarding &#8220;subqueryload&#8221; strategy whereby
the join would fail if using a multi-level load
of the form from A-&gt;joined-subclass-&gt;C<a class="changeset-link reference internal" href="#change-1703b90dcfd7ffd0b4f81bcbb70c3d44">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2014">#2014</a></p>
</p>
</li>
<li><p id="change-0.6.6-9"><span class="target" id="change-4a73b51d264c9ebf2bfe59749c653a7e"><strong>[orm] </strong></span>Fixed indexing of Query objects by -1. It was erroneously
transformed to the empty slice -1:0 that resulted in
IndexError.<a class="changeset-link reference internal" href="#change-4a73b51d264c9ebf2bfe59749c653a7e">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1968">#1968</a></p>
</p>
</li>
<li><p id="change-0.6.6-10"><span class="target" id="change-99c12b8a201a49a117b4bb21da31173a"><strong>[orm] </strong></span>The mapper argument &#8220;primary_key&#8221; can be passed as a
single column as well as a list or tuple.
The documentation examples that illustrated it as a
scalar value have been changed to lists.<a class="changeset-link reference internal" href="#change-99c12b8a201a49a117b4bb21da31173a">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1971">#1971</a></p>
</p>
</li>
<li><p id="change-0.6.6-11"><span class="target" id="change-ff4076489a43c234bed638b787e33718"><strong>[orm] </strong></span>Added active_history flag to relationship()
and column_property(), forces attribute events to
always load the &#8220;old&#8221; value, so that it&#8217;s available to
attributes.get_history().<a class="changeset-link reference internal" href="#change-ff4076489a43c234bed638b787e33718">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1961">#1961</a></p>
</p>
</li>
<li><p id="change-0.6.6-12"><span class="target" id="change-0ff4a3f02593bf67a026324aec361fc5"><strong>[orm] </strong></span>Query.get() will raise if the number of params
in a composite key is too large, as well as too
small.<a class="changeset-link reference internal" href="#change-0ff4a3f02593bf67a026324aec361fc5">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1977">#1977</a></p>
</p>
</li>
<li><p id="change-0.6.6-13"><span class="target" id="change-05860eb2ecae8e9521c06c989b36d3df"><strong>[orm] </strong></span>Backport of &#8220;optimized get&#8221; fix from 0.7,
improves the generation of joined-inheritance
&#8220;load expired row&#8221; behavior.<a class="changeset-link reference internal" href="#change-05860eb2ecae8e9521c06c989b36d3df">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1992">#1992</a></p>
</p>
</li>
<li><p id="change-0.6.6-14"><span class="target" id="change-dad16deefe860c0ae2a562ef161b1063"><strong>[orm] </strong></span>A little more verbiage to the &#8220;primaryjoin&#8221; error,
in an unusual condition that the join condition
&#8220;works&#8221; for viewonly but doesn&#8217;t work for non-viewonly,
and foreign_keys wasn&#8217;t used - adds &#8220;foreign_keys&#8221; to
the suggestion.  Also add &#8220;foreign_keys&#8221; to the
suggestion for the generic &#8220;direction&#8221; error.<a class="changeset-link reference internal" href="#change-dad16deefe860c0ae2a562ef161b1063">(link)</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.6-orm-declarative">
<h3>orm declarative<a class="headerlink" href="#change-0.6.6-orm-declarative" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.6-15"><span class="target" id="change-1c894bdd6f1952bc473239bc08a14b89"><strong>[declarative] [orm] </strong></span>An error is raised if __table_args__ is not in tuple
or dict format, and is not None.<a class="changeset-link reference internal" href="#change-1c894bdd6f1952bc473239bc08a14b89">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1972">#1972</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.6-engine">
<h3>engine<a class="headerlink" href="#change-0.6.6-engine" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.6-16"><span class="target" id="change-e344fa51f77920bcead6517070be003a"><strong>[engine] </strong></span>The &#8220;unicode warning&#8221; against non-unicode bind data
is now raised only when the
Unicode type is used explictly; not when
convert_unicode=True is used on the engine
or String type.<a class="changeset-link reference internal" href="#change-e344fa51f77920bcead6517070be003a">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.6-17"><span class="target" id="change-060786b76864313d10ab31bd71a4aeb8"><strong>[engine] </strong></span>Fixed memory leak in C version of Decimal result
processor.<a class="changeset-link reference internal" href="#change-060786b76864313d10ab31bd71a4aeb8">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1978">#1978</a></p>
</p>
</li>
<li><p id="change-0.6.6-18"><span class="target" id="change-a782cc312fd2acd3583135d10d33de6d"><strong>[engine] </strong></span>Implemented sequence check capability for the C
version of RowProxy, as well as 2.7 style
&#8220;collections.Sequence&#8221; registration for RowProxy.<a class="changeset-link reference internal" href="#change-a782cc312fd2acd3583135d10d33de6d">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1871">#1871</a></p>
</p>
</li>
<li><p id="change-0.6.6-19"><span class="target" id="change-4d3bfa440284b95d35ecfb86606c4b1d"><strong>[engine] </strong></span>Threadlocal engine methods rollback(), commit(),
prepare() won&#8217;t raise if no transaction is in progress;
this was a regression introduced in 0.6.<a class="changeset-link reference internal" href="#change-4d3bfa440284b95d35ecfb86606c4b1d">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1998">#1998</a></p>
</p>
</li>
<li><p id="change-0.6.6-20"><span class="target" id="change-bfd7df5b5e155908748f2e41fef4e6cb"><strong>[engine] </strong></span>Threadlocal engine returns itself upon begin(),
begin_nested(); engine then implements contextmanager
methods to allow the &#8220;with&#8221; statement.<a class="changeset-link reference internal" href="#change-bfd7df5b5e155908748f2e41fef4e6cb">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2004">#2004</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.6-sql">
<h3>sql<a class="headerlink" href="#change-0.6.6-sql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.6-21"><span class="target" id="change-8501b4f05d5a273f29d09e5fda4682b4"><strong>[sql] </strong></span>Fixed operator precedence rules for multiple
chains of a single non-associative operator.
I.e. &#8220;x - (y - z)&#8221; will compile as &#8220;x - (y - z)&#8221;
and not &#8220;x - y - z&#8221;.  Also works with labels,
i.e. &#8220;x - (y - z).label(&#8216;foo&#8217;)&#8221;<a class="changeset-link reference internal" href="#change-8501b4f05d5a273f29d09e5fda4682b4">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1984">#1984</a></p>
</p>
</li>
<li><p id="change-0.6.6-22"><span class="target" id="change-9329ac8a67c101712cc52dcd1ef51dfe"><strong>[sql] </strong></span>The &#8216;info&#8217; attribute of Column is copied during
Column.copy(), i.e. as occurs when using columns
in declarative mixins.<a class="changeset-link reference internal" href="#change-9329ac8a67c101712cc52dcd1ef51dfe">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1967">#1967</a></p>
</p>
</li>
<li><p id="change-0.6.6-23"><span class="target" id="change-313ab80f4ccba634879714775e2d1937"><strong>[sql] </strong></span>Added a bind processor for booleans which coerces
to int, for DBAPIs such as pymssql that naively call
str() on values.<a class="changeset-link reference internal" href="#change-313ab80f4ccba634879714775e2d1937">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.6-24"><span class="target" id="change-c6bca81c575803cd5d89152c9793de63"><strong>[sql] </strong></span>CheckConstraint will copy its &#8216;initially&#8217;, &#8216;deferrable&#8217;,
and &#8216;_create_rule&#8217; attributes within a copy()/tometadata()<a class="changeset-link reference internal" href="#change-c6bca81c575803cd5d89152c9793de63">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2000">#2000</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.6-postgresql">
<h3>postgresql<a class="headerlink" href="#change-0.6.6-postgresql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.6-25"><span class="target" id="change-6dfbe255f49659e489e09c208c1d7bee"><strong>[postgresql] </strong></span>Single element tuple expressions inside an IN clause
parenthesize correctly, also from<a class="changeset-link reference internal" href="#change-6dfbe255f49659e489e09c208c1d7bee">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1984">#1984</a></p>
</p>
</li>
<li><p id="change-0.6.6-26"><span class="target" id="change-55c1f840b71087d0e09bb8bc2afa14e4"><strong>[postgresql] </strong></span>Ensured every numeric, float, int code, scalar + array,
are recognized by psycopg2 and pg8000&#8217;s &#8220;numeric&#8221;
base type.<a class="changeset-link reference internal" href="#change-55c1f840b71087d0e09bb8bc2afa14e4">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1955">#1955</a></p>
</p>
</li>
<li><p id="change-0.6.6-27"><span class="target" id="change-0e07e9da5e3d2dc702aaf8213f255dc2"><strong>[postgresql] </strong></span>Added as_uuid=True flag to the UUID type, will receive
and return values as Python UUID() objects rather than
strings.  Currently, the UUID type is only known to
work with psycopg2.<a class="changeset-link reference internal" href="#change-0e07e9da5e3d2dc702aaf8213f255dc2">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1956">#1956</a></p>
</p>
</li>
<li><p id="change-0.6.6-28"><span class="target" id="change-6f1e93205663537c4ef282d5cfc3edef"><strong>[postgresql] </strong></span>Fixed bug whereby KeyError would occur with non-ENUM
supported PG versions after a pool dispose+recreate
would occur.<a class="changeset-link reference internal" href="#change-6f1e93205663537c4ef282d5cfc3edef">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1989">#1989</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.6-mysql">
<h3>mysql<a class="headerlink" href="#change-0.6.6-mysql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.6-29"><span class="target" id="change-15404de376dfeacb313c1bcb2ee66a33"><strong>[mysql] </strong></span>Fixed error handling for Jython + zxjdbc, such that
has_table() property works again.  Regression from
0.6.3 (we don&#8217;t have a Jython buildbot, sorry)<a class="changeset-link reference internal" href="#change-15404de376dfeacb313c1bcb2ee66a33">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1960">#1960</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.6-sqlite">
<h3>sqlite<a class="headerlink" href="#change-0.6.6-sqlite" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.6-30"><span class="target" id="change-6d83957f57c2e3d7f41b95967ddb322c"><strong>[sqlite] </strong></span>The REFERENCES clause in a CREATE TABLE that includes
a remote schema to another table with the same schema
name now renders the remote name without
the schema clause, as required by SQLite.<a class="changeset-link reference internal" href="#change-6d83957f57c2e3d7f41b95967ddb322c">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1851">#1851</a></p>
</p>
</li>
<li><p id="change-0.6.6-31"><span class="target" id="change-c7c69439e2cc0ec7af6b3dffa8a3a86f"><strong>[sqlite] </strong></span>On the same theme, the REFERENCES clause in a CREATE TABLE
that includes a remote schema to a <em>different</em> schema
than that of the parent table doesn&#8217;t render at all,
as cross-schema references do not appear to be supported.<a class="changeset-link reference internal" href="#change-c7c69439e2cc0ec7af6b3dffa8a3a86f">(link)</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.6-mssql">
<h3>mssql<a class="headerlink" href="#change-0.6.6-mssql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.6-32"><span class="target" id="change-445f4c11a73f0a2d7a02c8297f45a174"><strong>[mssql] </strong></span>The rewrite of index reflection in was
unfortunately not tested correctly, and returned incorrect
results.   This regression is now fixed.<a class="changeset-link reference internal" href="#change-445f4c11a73f0a2d7a02c8297f45a174">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1770">#1770</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.6-oracle">
<h3>oracle<a class="headerlink" href="#change-0.6.6-oracle" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.6-33"><span class="target" id="change-2ccadf16ce306a495b45d7e349e3a56d"><strong>[oracle] </strong></span>The cx_oracle &#8220;decimal detection&#8221; logic, which takes place
for result set columns with ambiguous numeric characteristics,
now uses the decimal point character determined by the locale/
NLS_LANG setting, using an on-first-connect detection of
this character.  cx_oracle 5.0.3 or greater is also required
when using a non-period-decimal-point NLS_LANG setting..<a class="changeset-link reference internal" href="#change-2ccadf16ce306a495b45d7e349e3a56d">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1953">#1953</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.6-firebird">
<h3>firebird<a class="headerlink" href="#change-0.6.6-firebird" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.6-34"><span class="target" id="change-cefc7fd8608289b2871c372d3f415aa1"><strong>[firebird] </strong></span>Firebird numeric type now checks for Decimal explicitly,
lets float() pass right through, thereby allowing
special values such as float(&#8216;inf&#8217;).<a class="changeset-link reference internal" href="#change-cefc7fd8608289b2871c372d3f415aa1">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/2012">#2012</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.6-misc">
<h3>misc<a class="headerlink" href="#change-0.6.6-misc" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.6-35"><span class="target" id="change-589cc5d2ae80b9d8ba7435234c630b85"><strong>[sqlsoup] </strong></span>Added &#8220;map_to()&#8221; method to SqlSoup, which is a &#8220;master&#8221;
method which accepts explicit arguments for each aspect of
the selectable and mapping, including a base class per
mapping.<a class="changeset-link reference internal" href="#change-589cc5d2ae80b9d8ba7435234c630b85">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1975">#1975</a></p>
</p>
</li>
<li><p id="change-0.6.6-36"><span class="target" id="change-c8bc4f5b37cc4e77cd766cce0179426c"><strong>[sqlsoup] </strong></span>Mapped selectables used with the map(), with_labels(),
join() methods no longer put the given argument into the
internal &#8220;cache&#8221; dictionary.  Particularly since the
join() and select() objects are created in the method
itself this was pretty much a pure memory leaking behavior.<a class="changeset-link reference internal" href="#change-c8bc4f5b37cc4e77cd766cce0179426c">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.6-37"><span class="target" id="change-cdab141baa9b101f65543811538eaad3"><strong>[examples] </strong></span>The versioning example now supports detection of changes
in an associated relationship().<a class="changeset-link reference internal" href="#change-cdab141baa9b101f65543811538eaad3">(link)</a><p></p>
</p>
</li>
</ul>
</div>
</div>
<div class="section" id="change-0.6.5">
<h2>0.6.5<a class="headerlink" href="#change-0.6.5" title="Permalink to this headline">¶</a></h2>
Released: Sun Oct 24 2010<div class="section" id="change-0.6.5-orm">
<h3>orm<a class="headerlink" href="#change-0.6.5-orm" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.5-0"><span class="target" id="change-05ec37b51f434e62c267fe20d4e58c7e"><strong>[orm] </strong></span>Added a new &#8220;lazyload&#8221; option &#8220;immediateload&#8221;.
Issues the usual &#8220;lazy&#8221; load operation automatically
as the object is populated.   The use case
here is when loading objects to be placed in
an offline cache, or otherwise used after
the session isn&#8217;t available, and straight &#8216;select&#8217;
loading, not &#8216;joined&#8217; or &#8216;subquery&#8217;, is desired.<a class="changeset-link reference internal" href="#change-05ec37b51f434e62c267fe20d4e58c7e">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1914">#1914</a></p>
</p>
</li>
<li><p id="change-0.6.5-1"><span class="target" id="change-10955dae4ce54a020b91ac0a8757e360"><strong>[orm] </strong></span>New Query methods: query.label(name), query.as_scalar(),
return the query&#8217;s statement as a scalar subquery
with /without label;
query.with_entities(<a href="#id1"><span class="problematic" id="id2">*</span></a>ent), replaces the SELECT list of
the query with new entities.
Roughly equivalent to a generative form of query.values()
which accepts mapped entities as well as column
expressions.<a class="changeset-link reference internal" href="#change-10955dae4ce54a020b91ac0a8757e360">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1920">#1920</a></p>
</p>
</li>
<li><p id="change-0.6.5-2"><span class="target" id="change-d784a2da322b348050aefe3c6258ba39"><strong>[orm] </strong></span>Fixed recursion bug which could occur when moving
an object from one reference to another, with
backrefs involved, where the initiating parent
was a subclass (with its own mapper) of the
previous parent.<a class="changeset-link reference internal" href="#change-d784a2da322b348050aefe3c6258ba39">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.5-3"><span class="target" id="change-6af93b4a17eb71913cf760ae65958264"><strong>[orm] </strong></span>Fixed a regression in 0.6.4 which occurred if you
passed an empty list to &#8220;include_properties&#8221; on
mapper()<a class="changeset-link reference internal" href="#change-6af93b4a17eb71913cf760ae65958264">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1918">#1918</a></p>
</p>
</li>
<li><p id="change-0.6.5-4"><span class="target" id="change-b79708d8c7a705b6ac80798508585034"><strong>[orm] </strong></span>Fixed labeling bug in Query whereby the NamedTuple
would mis-apply labels if any of the column
expressions were un-labeled.<a class="changeset-link reference internal" href="#change-b79708d8c7a705b6ac80798508585034">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.5-5"><span class="target" id="change-3ce4439ac51efb211009bf9295f36135"><strong>[orm] </strong></span>Patched a case where query.join() would adapt the
right side to the right side of the left&#8217;s join
inappropriately<a class="changeset-link reference internal" href="#change-3ce4439ac51efb211009bf9295f36135">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1925">#1925</a></p>
</p>
</li>
<li><p id="change-0.6.5-6"><span class="target" id="change-2520d6ed386bd5f52025b2ea26acaf3c"><strong>[orm] </strong></span>Query.select_from() has been beefed up to help
ensure that a subsequent call to query.join()
will use the select_from() entity, assuming it&#8217;s
a mapped entity and not a plain selectable,
as the default &#8220;left&#8221; side, not the first entity
in the Query object&#8217;s list of entities.<a class="changeset-link reference internal" href="#change-2520d6ed386bd5f52025b2ea26acaf3c">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.5-7"><span class="target" id="change-6ac225a74a7670ddfe45fd42b639020c"><strong>[orm] </strong></span>The exception raised by Session when it is used
subsequent to a subtransaction rollback (which is what
happens when a flush fails in autocommit=False mode) has
now been reworded (this is the &#8220;inactive due to a
rollback in a subtransaction&#8221; message). In particular,
if the rollback was due to an exception during flush(),
the message states this is the case, and reiterates the
string form of the original exception that occurred
during flush. If the session is closed due to explicit
usage of subtransactions (not very common), the message
just states this is the case.<a class="changeset-link reference internal" href="#change-6ac225a74a7670ddfe45fd42b639020c">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.5-8"><span class="target" id="change-d238e9c9585eb81bc60ff2f4cd32320f"><strong>[orm] </strong></span>The exception raised by Mapper when repeated requests to
its initialization are made after initialization already
failed no longer assumes the &#8220;hasattr&#8221; case, since
there&#8217;s other scenarios in which this message gets
emitted, and the message also does not compound onto
itself multiple times - you get the same message for
each attempt at usage. The misnomer &#8220;compiles&#8221; is being
traded out for &#8220;initialize&#8221;.<a class="changeset-link reference internal" href="#change-d238e9c9585eb81bc60ff2f4cd32320f">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.5-9"><span class="target" id="change-9ec0c4f2f483bf5d304f33c8593de5d9"><strong>[orm] </strong></span>Fixed bug in query.update() where &#8216;evaluate&#8217; or &#8216;fetch&#8217;
expiration would fail if the column expression key was
a class attribute with a different keyname as the
actual column name.<a class="changeset-link reference internal" href="#change-9ec0c4f2f483bf5d304f33c8593de5d9">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1935">#1935</a></p>
</p>
</li>
<li><p id="change-0.6.5-10"><span class="target" id="change-d84b4cf05c01f57aba9894d09098d696"><strong>[orm] </strong></span>Added an assertion during flush which ensures
that no NULL-holding identity keys were generated
on &#8220;newly persistent&#8221; objects.
This can occur when user defined code inadvertently
triggers flushes on not-fully-loaded objects.<a class="changeset-link reference internal" href="#change-d84b4cf05c01f57aba9894d09098d696">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.5-11"><span class="target" id="change-83d77852281b4f90915f5a66c5aeb2f4"><strong>[orm] </strong></span>lazy loads for relationship attributes now use
the current state, not the &#8220;committed&#8221; state,
of foreign and primary key attributes
when issuing SQL, if a flush is not in process.
Previously, only the database-committed state would
be used.  In particular, this would cause a many-to-one
get()-on-lazyload operation to fail, as autoflush
is not triggered on these loads when the attributes are
determined and the &#8220;committed&#8221; state may not be
available.<a class="changeset-link reference internal" href="#change-83d77852281b4f90915f5a66c5aeb2f4">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1910">#1910</a></p>
</p>
</li>
<li><p id="change-0.6.5-12"><span class="target" id="change-54bd435e0495c759195b5a89782f09f3"><strong>[orm] </strong></span>A new flag on relationship(), load_on_pending, allows
the lazy loader to fire off on pending objects without a
flush taking place, as well as a transient object that&#8217;s
been manually &#8220;attached&#8221; to the session. Note that this
flag blocks attribute events from taking place when an
object is loaded, so backrefs aren&#8217;t available until
after a flush. The flag is only intended for very
specific use cases.<a class="changeset-link reference internal" href="#change-54bd435e0495c759195b5a89782f09f3">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.5-13"><span class="target" id="change-080a574eb24dbc2249cb0cf42cd0c506"><strong>[orm] </strong></span>Another new flag on relationship(), cascade_backrefs,
disables the &#8220;save-update&#8221; cascade when the event was
initiated on the &#8220;reverse&#8221; side of a bidirectional
relationship.   This is a cleaner behavior so that
many-to-ones can be set on a transient object without
it getting sucked into the child object&#8217;s session,
while still allowing the forward collection to
cascade.   We <em>might</em> default this to False in 0.7.<a class="changeset-link reference internal" href="#change-080a574eb24dbc2249cb0cf42cd0c506">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.5-14"><span class="target" id="change-cd1698eb18bf61cf0da5afee7a5e7c4a"><strong>[orm] </strong></span>Slight improvement to the behavior of
&#8220;passive_updates=False&#8221; when placed only on the
many-to-one side of a relationship; documentation has
been clarified that passive_updates=False should really
be on the one-to-many side.<a class="changeset-link reference internal" href="#change-cd1698eb18bf61cf0da5afee7a5e7c4a">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.5-15"><span class="target" id="change-cad7611b381713d7cffe14e33ee704bf"><strong>[orm] </strong></span>Placing passive_deletes=True on a many-to-one emits
a warning, since you probably intended to put it on
the one-to-many side.<a class="changeset-link reference internal" href="#change-cad7611b381713d7cffe14e33ee704bf">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.5-16"><span class="target" id="change-6b88ae16dd7b28d9830d7684992e3cb7"><strong>[orm] </strong></span>Fixed bug that would prevent &#8220;subqueryload&#8221; from
working correctly with single table inheritance
for a relationship from a subclass - the &#8220;where
type in (x, y, z)&#8221; only gets placed on the inside,
instead of repeatedly.<a class="changeset-link reference internal" href="#change-6b88ae16dd7b28d9830d7684992e3cb7">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.5-17"><span class="target" id="change-34f0bff0696715bf8cb3e59f6d10b4bb"><strong>[orm] </strong></span>When using from_self() with single table inheritance,
the &#8220;where type in (x, y, z)&#8221; is placed on the outside
of the query only, instead of repeatedly.   May make
some more adjustments to this.<a class="changeset-link reference internal" href="#change-34f0bff0696715bf8cb3e59f6d10b4bb">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.5-18"><span class="target" id="change-b008ec0e6f859c0904e7abd78a62457f"><strong>[orm] </strong></span>scoped_session emits a warning when configure() is
called if a Session is already present (checks only the
current thread)<a class="changeset-link reference internal" href="#change-b008ec0e6f859c0904e7abd78a62457f">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1924">#1924</a></p>
</p>
</li>
<li><p id="change-0.6.5-19"><span class="target" id="change-63bb35cc7429215a5a693a352a838a9b"><strong>[orm] </strong></span>reworked the internals of mapper.cascade_iterator() to
cut down method calls by about 9% in some circumstances.<a class="changeset-link reference internal" href="#change-63bb35cc7429215a5a693a352a838a9b">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1932">#1932</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.5-orm-declarative">
<h3>orm declarative<a class="headerlink" href="#change-0.6.5-orm-declarative" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.5-20"><span class="target" id="change-b19f9aa816f9e63c03fa209095e76f51"><strong>[declarative] [orm] </strong></span>&#64;classproperty (soon/now &#64;declared_attr) takes effect for
__mapper_args__, __table_args__, __tablename__ on
a base class that is not a mixin, as well as mixins.<a class="changeset-link reference internal" href="#change-b19f9aa816f9e63c03fa209095e76f51">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1922">#1922</a></p>
</p>
</li>
<li><p id="change-0.6.5-21"><span class="target" id="change-b9792dc15f6375711ec84bb73ae74272"><strong>[declarative] [orm] </strong></span>&#64;classproperty &#8216;s official name/location for usage
with declarative is sqlalchemy.ext.declarative.declared_attr.
Same thing, but moving there since it is more of a
&#8220;marker&#8221; that&#8217;s specific to declararative,
not just an attribute technique.<a class="changeset-link reference internal" href="#change-b9792dc15f6375711ec84bb73ae74272">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1915">#1915</a></p>
</p>
</li>
<li><p id="change-0.6.5-22"><span class="target" id="change-172b80261166fbfb39ffe45d8499afe2"><strong>[declarative] [orm] </strong></span>Fixed bug whereby columns on a mixin wouldn&#8217;t propagate
correctly to a single-table, or joined-table,
inheritance scheme where the attribute name is
different than that of the column.,.<a class="changeset-link reference internal" href="#change-172b80261166fbfb39ffe45d8499afe2">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1931">#1931</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1930">#1930</a></p>
</p>
</li>
<li><p id="change-0.6.5-23"><span class="target" id="change-b0075b372f99003ca5b69e678f306150"><strong>[declarative] [orm] </strong></span>A mixin can now specify a column that overrides
a column of the same name associated with a superclass.
Thanks to Oystein Haaland.<a class="changeset-link reference internal" href="#change-b0075b372f99003ca5b69e678f306150">(link)</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.5-engine">
<h3>engine<a class="headerlink" href="#change-0.6.5-engine" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.5-24"><span class="target" id="change-1059318af334dfde665aff47590e8542"><strong>[engine] </strong></span>Fixed a regression in 0.6.4 whereby the change that
allowed cursor errors to be raised consistently broke
the result.lastrowid accessor.   Test coverage has
been added for result.lastrowid.   Note that lastrowid
is only supported by Pysqlite and some MySQL drivers,
so isn&#8217;t super-useful in the general case.<a class="changeset-link reference internal" href="#change-1059318af334dfde665aff47590e8542">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.5-25"><span class="target" id="change-ebd200888550cee6694d854883573fa6"><strong>[engine] </strong></span>the logging message emitted by the engine when
a connection is first used is now &#8220;BEGIN (implicit)&#8221;
to emphasize that DBAPI has no explicit begin().<a class="changeset-link reference internal" href="#change-ebd200888550cee6694d854883573fa6">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.5-26"><span class="target" id="change-583d616a6e6d2ed7c2874a91f7e8b83a"><strong>[engine] </strong></span>added &#8220;views=True&#8221; option to metadata.reflect(),
will add the list of available views to those
being reflected.<a class="changeset-link reference internal" href="#change-583d616a6e6d2ed7c2874a91f7e8b83a">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1936">#1936</a></p>
</p>
</li>
<li><p id="change-0.6.5-27"><span class="target" id="change-50d5bffb777603ddce658a6a67b8e205"><strong>[engine] </strong></span>engine_from_config() now accepts &#8216;debug&#8217; for
&#8216;echo&#8217;, &#8216;echo_pool&#8217;, &#8216;force&#8217; for &#8216;convert_unicode&#8217;,
boolean values for &#8216;use_native_unicode&#8217;.<a class="changeset-link reference internal" href="#change-50d5bffb777603ddce658a6a67b8e205">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1899">#1899</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.5-sql">
<h3>sql<a class="headerlink" href="#change-0.6.5-sql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.5-28"><span class="target" id="change-38a4e7cd800b41adf3d50801a7f7cb1b"><strong>[sql] </strong></span>Fixed bug in TypeDecorator whereby the dialect-specific
type was getting pulled in to generate the DDL for a
given type, which didn&#8217;t always return the correct result.<a class="changeset-link reference internal" href="#change-38a4e7cd800b41adf3d50801a7f7cb1b">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.5-29"><span class="target" id="change-1f4462b0b5fe565c42d2a26adc200c72"><strong>[sql] </strong></span>TypeDecorator can now have a fully constructed type
specified as its &#8220;impl&#8221;, in addition to a type class.<a class="changeset-link reference internal" href="#change-1f4462b0b5fe565c42d2a26adc200c72">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.5-30"><span class="target" id="change-9dc92f16ad4db3c34c0aa4eae14c851f"><strong>[sql] </strong></span>TypeDecorator will now place itself as the resulting
type for a binary expression where the type coercion
rules would normally return its impl type - previously,
a copy of the impl type would be returned which would
have the TypeDecorator embedded into it as the &#8220;dialect&#8221;
impl, this was probably an unintentional way of achieving
the desired effect.<a class="changeset-link reference internal" href="#change-9dc92f16ad4db3c34c0aa4eae14c851f">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.5-31"><span class="target" id="change-2b8e904daae0d182fbf0aaa6bca9d64b"><strong>[sql] </strong></span>TypeDecorator.load_dialect_impl() returns &#8220;self.impl&#8221; by
default, i.e. not the dialect implementation type of
&#8220;self.impl&#8221;.   This to support compilation correctly.
Behavior can be user-overridden in exactly the same way
as before to the same effect.<a class="changeset-link reference internal" href="#change-2b8e904daae0d182fbf0aaa6bca9d64b">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.5-32"><span class="target" id="change-5f6436f4c6adbb07cdec29782b336960"><strong>[sql] </strong></span>Added type_coerce(expr, <a href="#id15"><span class="problematic" id="id16">type_</span></a>) expression element.
Treats the given expression as the given type when evaluating
expressions and processing result rows, but does not
affect the generation of SQL, other than an anonymous
label.<a class="changeset-link reference internal" href="#change-5f6436f4c6adbb07cdec29782b336960">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.5-33"><span class="target" id="change-6c855e196152b57c304b333e9770fa07"><strong>[sql] </strong></span>Table.tometadata() now copies Index objects associated
with the Table as well.<a class="changeset-link reference internal" href="#change-6c855e196152b57c304b333e9770fa07">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.5-34"><span class="target" id="change-81cb47d5917f4a66ca50b654ececaf77"><strong>[sql] </strong></span>Table.tometadata() issues a warning if the given Table
is already present in the target MetaData - the existing
Table object is returned.<a class="changeset-link reference internal" href="#change-81cb47d5917f4a66ca50b654ececaf77">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.5-35"><span class="target" id="change-6c2eaa8e6ce7b6c71555f1222eccbb27"><strong>[sql] </strong></span>An informative error message is raised if a Column
which has not yet been assigned a name, i.e. as in
declarative, is used in a context where it is
exported to the columns collection of an enclosing
select() construct, or if any construct involving
that column is compiled before its name is
assigned.<a class="changeset-link reference internal" href="#change-6c2eaa8e6ce7b6c71555f1222eccbb27">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.5-36"><span class="target" id="change-69ad40851eefcd610d8d70ebd3511697"><strong>[sql] </strong></span>as_scalar(), label() can be called on a selectable
which contains a Column that is not yet named.<a class="changeset-link reference internal" href="#change-69ad40851eefcd610d8d70ebd3511697">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1862">#1862</a></p>
</p>
</li>
<li><p id="change-0.6.5-37"><span class="target" id="change-fcb44a57a6160aab1d8c4e8427c9b044"><strong>[sql] </strong></span>Fixed recursion overflow which could occur when operating
with two expressions both of type &#8220;NullType&#8221;, but
not the singleton NULLTYPE instance.<a class="changeset-link reference internal" href="#change-fcb44a57a6160aab1d8c4e8427c9b044">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1907">#1907</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.5-postgresql">
<h3>postgresql<a class="headerlink" href="#change-0.6.5-postgresql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.5-38"><span class="target" id="change-4d094ee39f2d2bfb4cbd1e9cd2912640"><strong>[postgresql] </strong></span>Added &#8220;as_tuple&#8221; flag to ARRAY type, returns results
as tuples instead of lists to allow hashing.<a class="changeset-link reference internal" href="#change-4d094ee39f2d2bfb4cbd1e9cd2912640">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.5-39"><span class="target" id="change-5b9e6f2e203f6ec007fcf90d5d5d9e90"><strong>[postgresql] </strong></span>Fixed bug which prevented &#8220;domain&#8221; built from a
custom type such as &#8220;enum&#8221; from being reflected.<a class="changeset-link reference internal" href="#change-5b9e6f2e203f6ec007fcf90d5d5d9e90">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1933">#1933</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.5-mysql">
<h3>mysql<a class="headerlink" href="#change-0.6.5-mysql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.5-40"><span class="target" id="change-e8d0855d359fcbb93416e1b0988fdb8e"><strong>[mysql] </strong></span>Fixed bug involving reflection of CURRENT_TIMESTAMP
default used with ON UPDATE clause, thanks to
Taavi Burns<a class="changeset-link reference internal" href="#change-e8d0855d359fcbb93416e1b0988fdb8e">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1940">#1940</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.5-mssql">
<h3>mssql<a class="headerlink" href="#change-0.6.5-mssql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.5-41"><span class="target" id="change-f16e997950ea6bca39c0a059887dfbfd"><strong>[mssql] </strong></span>Fixed reflection bug which did not properly handle
reflection of unknown types.<a class="changeset-link reference internal" href="#change-f16e997950ea6bca39c0a059887dfbfd">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1946">#1946</a></p>
</p>
</li>
<li><p id="change-0.6.5-42"><span class="target" id="change-022e82021b20bc2c059207eb8b7234af"><strong>[mssql] </strong></span>Fixed bug where aliasing of tables with &#8220;schema&#8221; would
fail to compile properly.<a class="changeset-link reference internal" href="#change-022e82021b20bc2c059207eb8b7234af">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1943">#1943</a></p>
</p>
</li>
<li><p id="change-0.6.5-43"><span class="target" id="change-9f19687a241d918bf9dd03d0cc3ff3ed"><strong>[mssql] </strong></span>Rewrote the reflection of indexes to use sys.
catalogs, so that column names of any configuration
(spaces, embedded commas, etc.) can be reflected.
Note that reflection of indexes requires SQL
Server 2005 or greater.<a class="changeset-link reference internal" href="#change-9f19687a241d918bf9dd03d0cc3ff3ed">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1770">#1770</a></p>
</p>
</li>
<li><p id="change-0.6.5-44"><span class="target" id="change-ffe886676fb15f105e1a8cc37dfb6f9d"><strong>[mssql] </strong></span>mssql+pymssql dialect now honors the &#8220;port&#8221; portion
of the URL instead of discarding it.<a class="changeset-link reference internal" href="#change-ffe886676fb15f105e1a8cc37dfb6f9d">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1952">#1952</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.5-oracle">
<h3>oracle<a class="headerlink" href="#change-0.6.5-oracle" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.5-45"><span class="target" id="change-b1ce6e2ee29e5229dafefbb51f14def2"><strong>[oracle] </strong></span>The implicit_retunring argument to create_engine()
is now honored regardless of detected version of
Oracle.  Previously, the flag would be forced
to False if server version info was &lt; 10.<a class="changeset-link reference internal" href="#change-b1ce6e2ee29e5229dafefbb51f14def2">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1878">#1878</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.5-misc">
<h3>misc<a class="headerlink" href="#change-0.6.5-misc" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.5-46"><span class="target" id="change-8af323a4cf559c67e71f9b667f9548f5"><strong>[informix] </strong></span><em>Major</em> cleanup / modernization of the Informix
dialect for 0.6, courtesy Florian Apolloner.<a class="changeset-link reference internal" href="#change-8af323a4cf559c67e71f9b667f9548f5">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1906">#1906</a></p>
</p>
</li>
<li><p id="change-0.6.5-47"><span class="target" id="change-e6cb2547ce70b9a4f2dec84481578326"><strong>[tests] </strong></span>the NoseSQLAlchemyPlugin has been moved to a
new package &#8220;sqlalchemy_nose&#8221; which installs
along with &#8220;sqlalchemy&#8221;.  This so that the &#8220;nosetests&#8221;
script works as always but also allows the
&#8211;with-coverage option to turn on coverage before
SQLAlchemy modules are imported, allowing coverage
to work correctly.<a class="changeset-link reference internal" href="#change-e6cb2547ce70b9a4f2dec84481578326">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.5-48"><span class="target" id="change-2643e47a8fea315fd31765418be4607e"><strong>[misc] </strong></span>CircularDependencyError now has .cycles and .edges
members, which are the set of elements involved in
one or more cycles, and the set of edges as 2-tuples.<a class="changeset-link reference internal" href="#change-2643e47a8fea315fd31765418be4607e">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1890">#1890</a></p>
</p>
</li>
</ul>
</div>
</div>
<div class="section" id="change-0.6.4">
<h2>0.6.4<a class="headerlink" href="#change-0.6.4" title="Permalink to this headline">¶</a></h2>
Released: Tue Sep 07 2010<div class="section" id="change-0.6.4-orm">
<h3>orm<a class="headerlink" href="#change-0.6.4-orm" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.4-0"><span class="target" id="change-535033df965223821f740fe36bbc21c8"><strong>[orm] </strong></span>The name ConcurrentModificationError has been
changed to StaleDataError, and descriptive
error messages have been revised to reflect
exactly what the issue is.   Both names will
remain available for the forseeable future
for schemes that may be specifying
ConcurrentModificationError in an &#8220;except:&#8221;
clause.<a class="changeset-link reference internal" href="#change-535033df965223821f740fe36bbc21c8">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.4-1"><span class="target" id="change-c8ed6002ef9d50947734327801710649"><strong>[orm] </strong></span>Added a mutex to the identity map which mutexes
remove operations against iteration methods,
which now pre-buffer before returning an
iterable.   This because asyncrhonous gc
can remove items via the gc thread at any time.<a class="changeset-link reference internal" href="#change-c8ed6002ef9d50947734327801710649">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1891">#1891</a></p>
</p>
</li>
<li><p id="change-0.6.4-2"><span class="target" id="change-c30b33f0a0466c41b96742c2e74aad91"><strong>[orm] </strong></span>The Session class is now present in sqlalchemy.orm.*.
We&#8217;re moving away from the usage of create_session(),
which has non-standard defaults, for those situations
where a one-step Session constructor is desired. Most
users should stick with sessionmaker() for general use,
however.<a class="changeset-link reference internal" href="#change-c30b33f0a0466c41b96742c2e74aad91">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.4-3"><span class="target" id="change-8dff7e6fded59f4fa37d00624eb71bed"><strong>[orm] </strong></span>query.with_parent() now accepts transient objects
and will use the non-persistent values of their pk/fk
attributes in order to formulate the criterion.
Docs are also clarified as to the purpose of with_parent().<a class="changeset-link reference internal" href="#change-8dff7e6fded59f4fa37d00624eb71bed">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.4-4"><span class="target" id="change-2638d82e47303db82e79a9e5c1361b30"><strong>[orm] </strong></span>The include_properties and exclude_properties arguments
to mapper() now accept Column objects as members in
addition to strings.  This so that same-named Column
objects, such as those within a join(), can be
disambiguated.<a class="changeset-link reference internal" href="#change-2638d82e47303db82e79a9e5c1361b30">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.4-5"><span class="target" id="change-96944473a095ce6dfc07cbc71640f1d9"><strong>[orm] </strong></span>A warning is now emitted if a mapper is created against a
join or other single selectable that includes multiple
columns with the same name in its .c. collection,
and those columns aren&#8217;t explictly named as part of
the same or separate attributes (or excluded).
In 0.7 this warning will be an exception.   Note that
this warning is not emitted when the combination occurs
as a result of inheritance, so that attributes
still allow being overridden naturally..  In 0.7 this will be improved further.<a class="changeset-link reference internal" href="#change-96944473a095ce6dfc07cbc71640f1d9">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1896">#1896</a></p>
</p>
</li>
<li><p id="change-0.6.4-6"><span class="target" id="change-95c2749ceb65bb793c5d3667b070c596"><strong>[orm] </strong></span>The primary_key argument to mapper() can now specify
a series of columns that are only a subset of
the calculated &#8220;primary key&#8221; columns of the mapped
selectable, without an error being raised.  This
helps for situations where a selectable&#8217;s effective
primary key is simpler than the number of columns
in the selectable that are actually marked as
&#8220;primary_key&#8221;, such as a join against two
tables on their primary key columns.<a class="changeset-link reference internal" href="#change-95c2749ceb65bb793c5d3667b070c596">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1896">#1896</a></p>
</p>
</li>
<li><p id="change-0.6.4-7"><span class="target" id="change-fa24485df7e6bb87af279c1ebf82e0ec"><strong>[orm] </strong></span>An object that&#8217;s been deleted now gets a flag
&#8216;deleted&#8217;, which prohibits the object from
being re-add()ed to the session, as previously
the object would live in the identity map
silently until its attributes were accessed.
The make_transient() function now resets this
flag along with the &#8220;key&#8221; flag.<a class="changeset-link reference internal" href="#change-fa24485df7e6bb87af279c1ebf82e0ec">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.4-8"><span class="target" id="change-a8fc0dce447503a22a961b5cf7d20ae8"><strong>[orm] </strong></span>make_transient() can be safely called on an
already transient instance.<a class="changeset-link reference internal" href="#change-a8fc0dce447503a22a961b5cf7d20ae8">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.4-9"><span class="target" id="change-6b78024db59658489dadbac75c893b54"><strong>[orm] </strong></span>a warning is emitted in mapper() if the polymorphic_on
column is not present either in direct or derived
form in the mapped selectable or in the
with_polymorphic selectable, instead of silently
ignoring it.  Look for this to become an
exception in 0.7.<a class="changeset-link reference internal" href="#change-6b78024db59658489dadbac75c893b54">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.4-10"><span class="target" id="change-4714288dd0e270666ddd8fcd21827ebc"><strong>[orm] </strong></span>Another pass through the series of error messages
emitted when relationship() is configured with
ambiguous arguments.   The &#8220;foreign_keys&#8221;
setting is no longer mentioned, as it is almost
never needed and it is preferable users set up
correct ForeignKey metadata, which is now the
recommendation.  If &#8216;foreign_keys&#8217;
is used and is incorrect, the message suggests
the attribute is probably unnecessary.  Docs
for the attribute are beefed up.  This
because all confused relationship() users on the
ML appear to be attempting to use foreign_keys
due to the message, which only confuses them
further since Table metadata is much clearer.<a class="changeset-link reference internal" href="#change-4714288dd0e270666ddd8fcd21827ebc">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.4-11"><span class="target" id="change-0c977ba4a7beb44f73ec46ff9a6699ac"><strong>[orm] </strong></span>If the &#8220;secondary&#8221; table has no ForeignKey metadata
and no foreign_keys is set, even though the
user is passing screwed up information, it is assumed
that primary/secondaryjoin expressions should
consider only and all cols in &#8220;secondary&#8221; to be
foreign.  It&#8217;s not possible with &#8220;secondary&#8221; for
the foreign keys to be elsewhere in any case.
A warning is now emitted instead of an error,
and the mapping succeeds.<a class="changeset-link reference internal" href="#change-0c977ba4a7beb44f73ec46ff9a6699ac">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1877">#1877</a></p>
</p>
</li>
<li><p id="change-0.6.4-12"><span class="target" id="change-9feca02adf52a0e5fcf4763b9b262443"><strong>[orm] </strong></span>Moving an o2m object from one collection to
another, or vice versa changing the referenced
object by an m2o, where the foreign key is also a
member of the primary key, will now be more
carefully checked during flush if the change in
value of the foreign key on the &#8220;many&#8221; side is the
result of a change in the primary key of the &#8220;one&#8221;
side, or if the &#8220;one&#8221; is just a different object.
In one case, a cascade-capable DB would have
cascaded the value already and we need to look at
the &#8220;new&#8221; PK value to do an UPDATE, in the other we
need to continue looking at the &#8220;old&#8221;. We now look
at the &#8220;old&#8221;, assuming passive_updates=True,
unless we know it was a PK switch that
triggered the change.<a class="changeset-link reference internal" href="#change-9feca02adf52a0e5fcf4763b9b262443">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1856">#1856</a></p>
</p>
</li>
<li><p id="change-0.6.4-13"><span class="target" id="change-7b40a0ed4bb3ad00531e5ece518709c2"><strong>[orm] </strong></span>The value of version_id_col can be changed
manually, and this will result in an UPDATE
of the row.  Versioned UPDATEs and DELETEs
now use the &#8220;committed&#8221; value of the
version_id_col in the WHERE clause and
not the pending changed value. The
version generator is also bypassed if
manual changes are present on the attribute.<a class="changeset-link reference internal" href="#change-7b40a0ed4bb3ad00531e5ece518709c2">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1857">#1857</a></p>
</p>
</li>
<li><p id="change-0.6.4-14"><span class="target" id="change-8665092a2dcfbeb8cfd12fb215aaa1e2"><strong>[orm] </strong></span>Repaired the usage of merge() when used with
concrete inheriting mappers.  Such mappers frequently
have so-called &#8220;concrete&#8221; attributes, which are
subclass attributes that &#8220;disable&#8221; propagation from
the parent - these needed to allow a merge()
operation to pass through without effect.<a class="changeset-link reference internal" href="#change-8665092a2dcfbeb8cfd12fb215aaa1e2">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.4-15"><span class="target" id="change-4510836f41e7d0aacd0767c13db1d59b"><strong>[orm] </strong></span>Specifying a non-column based argument
for column_mapped_collection, including string,
text() etc., will raise an error message that
specifically asks for a column element, no longer
misleads with incorrect information about
text() or literal().<a class="changeset-link reference internal" href="#change-4510836f41e7d0aacd0767c13db1d59b">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1863">#1863</a></p>
</p>
</li>
<li><p id="change-0.6.4-16"><span class="target" id="change-671bef71f312d0040b6a4caf49decd77"><strong>[orm] </strong></span>Similarly, for relationship(), foreign_keys,
remote_side, order_by - all column-based
expressions are enforced - lists of strings
are explicitly disallowed since this is a
very common error<a class="changeset-link reference internal" href="#change-671bef71f312d0040b6a4caf49decd77">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.4-17"><span class="target" id="change-ca14d6f9dcfb96b5f02b1a2ef13fa35d"><strong>[orm] </strong></span>Dynamic attributes don&#8217;t support collection
population - added an assertion for when
set_committed_value() is called, as well as
when joinedload() or subqueryload() options
are applied to a dynamic attribute, instead
of failure / silent failure.<a class="changeset-link reference internal" href="#change-ca14d6f9dcfb96b5f02b1a2ef13fa35d">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1864">#1864</a></p>
</p>
</li>
<li><p id="change-0.6.4-18"><span class="target" id="change-d81765c5426dca3b1ec2a2f05a542dbb"><strong>[orm] </strong></span>Fixed bug whereby generating a Query derived
from one which had the same column repeated
with different label names, typically
in some UNION situations, would fail to
propagate the inner columns completely to
the outer query.<a class="changeset-link reference internal" href="#change-d81765c5426dca3b1ec2a2f05a542dbb">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1852">#1852</a></p>
</p>
</li>
<li><p id="change-0.6.4-19"><span class="target" id="change-8519514b873baed592912155c0427a1e"><strong>[orm] </strong></span>object_session() raises the proper
UnmappedInstanceError when presented with an
unmapped instance.<a class="changeset-link reference internal" href="#change-8519514b873baed592912155c0427a1e">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1881">#1881</a></p>
</p>
</li>
<li><p id="change-0.6.4-20"><span class="target" id="change-e79a357376a117fe672113952bbe015b"><strong>[orm] </strong></span>Applied further memoizations to calculated Mapper
properties, with significant (~90%) runtime mapper.py
call count reduction in heavily polymorphic mapping
configurations.<a class="changeset-link reference internal" href="#change-e79a357376a117fe672113952bbe015b">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.4-21"><span class="target" id="change-a71fab65be706a5c214db3ca5b3abbb9"><strong>[orm] </strong></span>mapper _get_col_to_prop private method used
by the versioning example is deprecated;
now use mapper.get_property_by_column() which
will remain the public method for this.<a class="changeset-link reference internal" href="#change-a71fab65be706a5c214db3ca5b3abbb9">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.4-22"><span class="target" id="change-8d5f4593adc4160b12a49dcee66d174f"><strong>[orm] </strong></span>the versioning example works correctly now
if versioning on a col that was formerly
NULL.<a class="changeset-link reference internal" href="#change-8d5f4593adc4160b12a49dcee66d174f">(link)</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.4-orm-declarative">
<h3>orm declarative<a class="headerlink" href="#change-0.6.4-orm-declarative" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.4-23"><span class="target" id="change-d4f2d73f8008d60634e100a68c13d398"><strong>[declarative] [orm] </strong></span>if &#64;classproperty is used with a regular class-bound
mapper property attribute, it will be called to get the
actual attribute value during initialization. Currently,
there&#8217;s no advantage to using &#64;classproperty on a column
or relationship attribute of a declarative class that
isn&#8217;t a mixin - evaluation is at the same time as if
&#64;classproperty weren&#8217;t used. But here we at least allow
it to function as expected.<a class="changeset-link reference internal" href="#change-d4f2d73f8008d60634e100a68c13d398">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.4-24"><span class="target" id="change-868509e7b789f5e8a014c772349e3eb7"><strong>[declarative] [orm] </strong></span>Fixed bug where &#8220;Can&#8217;t add additional column&#8221; message
would display the wrong name.<a class="changeset-link reference internal" href="#change-868509e7b789f5e8a014c772349e3eb7">(link)</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.4-engine">
<h3>engine<a class="headerlink" href="#change-0.6.4-engine" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.4-25"><span class="target" id="change-589479e3126e16088d4e863148a31849"><strong>[engine] </strong></span>Calling fetchone() or similar on a result that
has already been exhausted, has been closed,
or is not a result-returning result now
raises ResourceClosedError, a subclass of
InvalidRequestError, in all cases, regardless
of backend.  Previously, some DBAPIs would
raise ProgrammingError (i.e. pysqlite), others
would return None leading to downstream breakages
(i.e. MySQL-python).<a class="changeset-link reference internal" href="#change-589479e3126e16088d4e863148a31849">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.4-26"><span class="target" id="change-0c3f6fab852e973ab1d2ba1c54362a92"><strong>[engine] </strong></span>Fixed bug in Connection whereby if a &#8220;disconnect&#8221;
event occurred in the &#8220;initialize&#8221; phase of the
first connection pool connect, an AttributeError
would be raised when the Connection would attempt
to invalidate the DBAPI connection.<a class="changeset-link reference internal" href="#change-0c3f6fab852e973ab1d2ba1c54362a92">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1894">#1894</a></p>
</p>
</li>
<li><p id="change-0.6.4-27"><span class="target" id="change-ab05177ef559d382cd656f5e04d11148"><strong>[engine] </strong></span>Connection, ResultProxy, as well as Session use
ResourceClosedError for all &#8220;this
connection/transaction/result is closed&#8221; types of
errors.<a class="changeset-link reference internal" href="#change-ab05177ef559d382cd656f5e04d11148">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.4-28"><span class="target" id="change-d4066423ccfa075735e1ebf61f2cbc24"><strong>[engine] </strong></span>Connection.invalidate() can be called more than
once and subsequent calls do nothing.<a class="changeset-link reference internal" href="#change-d4066423ccfa075735e1ebf61f2cbc24">(link)</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.4-sql">
<h3>sql<a class="headerlink" href="#change-0.6.4-sql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.4-29"><span class="target" id="change-480b20f80312b137c4a7324b0d657a63"><strong>[sql] </strong></span>Calling execute() on an alias() construct is pending
deprecation for 0.7, as it is not itself an
&#8220;executable&#8221; construct. It currently &#8220;proxies&#8221; its
inner element and is conditionally &#8220;executable&#8221; but
this is not the kind of ambiguity we like these days.<a class="changeset-link reference internal" href="#change-480b20f80312b137c4a7324b0d657a63">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.4-30"><span class="target" id="change-eb5f51e1a650e79182bb020de761924f"><strong>[sql] </strong></span>The execute() and scalar() methods of ClauseElement
are now moved appropriately to the Executable
subclass. ClauseElement.execute()/ scalar() are still
present and are pending deprecation in 0.7, but note
these would always raise an error anyway if you were
not an Executable (unless you were an alias(), see
previous note).<a class="changeset-link reference internal" href="#change-eb5f51e1a650e79182bb020de761924f">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.4-31"><span class="target" id="change-95e0aca2331a7b95d533d515094ccb13"><strong>[sql] </strong></span>Added basic math expression coercion for
Numeric-&gt;Integer,
so that resulting type is Numeric regardless
of the direction of the expression.<a class="changeset-link reference internal" href="#change-95e0aca2331a7b95d533d515094ccb13">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.4-32"><span class="target" id="change-a584b4c246f0f778263d5dc8e66808ad"><strong>[sql] </strong></span>Changed the scheme used to generate truncated
&#8220;auto&#8221; index names when using the &#8220;index=True&#8221;
flag on Column.   The truncation only takes
place with the auto-generated name, not one
that is user-defined (an error would be
raised instead), and the truncation scheme
itself is now based on a fragment of an md5
hash of the identifier name, so that multiple
indexes on columns with similar names still
have unique names.<a class="changeset-link reference internal" href="#change-a584b4c246f0f778263d5dc8e66808ad">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1855">#1855</a></p>
</p>
</li>
<li><p id="change-0.6.4-33"><span class="target" id="change-cdd20195fab17091c475b43262749a74"><strong>[sql] </strong></span>The generated index name also is based on
a &#8220;max index name length&#8221; attribute which is
separate from the &#8220;max identifier length&#8221; -
this to appease MySQL who has a max length
of 64 for index names, separate from their
overall max length of 255.<a class="changeset-link reference internal" href="#change-cdd20195fab17091c475b43262749a74">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1412">#1412</a></p>
</p>
</li>
<li><p id="change-0.6.4-34"><span class="target" id="change-e0733f3fbe5188168ab9fc6dd0040998"><strong>[sql] </strong></span>the text() construct, if placed in a column
oriented situation, will at least return NULLTYPE
for its type instead of None, allowing it to
be used a little more freely for ad-hoc column
expressions than before.   literal_column()
is still the better choice, however.<a class="changeset-link reference internal" href="#change-e0733f3fbe5188168ab9fc6dd0040998">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.4-35"><span class="target" id="change-be54ec2b3e2eb3de741a48665fe37d51"><strong>[sql] </strong></span>Added full description of parent table/column,
target table/column in error message raised when
ForeignKey can&#8217;t resolve target.<a class="changeset-link reference internal" href="#change-be54ec2b3e2eb3de741a48665fe37d51">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.4-36"><span class="target" id="change-95d89e7a08c42c04836f4ec67f236a9f"><strong>[sql] </strong></span>Fixed bug whereby replacing composite foreign key
columns in a reflected table would cause an attempt
to remove the reflected constraint from the table
a second time, raising a KeyError.<a class="changeset-link reference internal" href="#change-95d89e7a08c42c04836f4ec67f236a9f">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1865">#1865</a></p>
</p>
</li>
<li><p id="change-0.6.4-37"><span class="target" id="change-0a8949e6824cfb04db55beb3e85e4aed"><strong>[sql] </strong></span>the _Label construct, i.e. the one that is produced
whenever you say somecol.label(), now counts itself
in its &#8220;proxy_set&#8221; unioned with that of it&#8217;s
contained column&#8217;s proxy set, instead of
directly returning that of the contained column.
This allows column correspondence
operations which depend on the identity of the
_Labels themselves to return the correct result<a class="changeset-link reference internal" href="#change-0a8949e6824cfb04db55beb3e85e4aed">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.4-38"><span class="target" id="change-babee0cfb69d9dbe635ee89deaa616d3"><strong>[sql] </strong></span>fixes ORM bug.<a class="changeset-link reference internal" href="#change-babee0cfb69d9dbe635ee89deaa616d3">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1852">#1852</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.4-postgresql">
<h3>postgresql<a class="headerlink" href="#change-0.6.4-postgresql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.4-39"><span class="target" id="change-f20cfbd769e0d3362affb83971075073"><strong>[postgresql] </strong></span>Fixed the psycopg2 dialect to use its
set_isolation_level() method instead of relying
upon the base &#8220;SET SESSION ISOLATION&#8221; command,
as psycopg2 resets the isolation level on each new
transaction otherwise.<a class="changeset-link reference internal" href="#change-f20cfbd769e0d3362affb83971075073">(link)</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.4-mssql">
<h3>mssql<a class="headerlink" href="#change-0.6.4-mssql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.4-40"><span class="target" id="change-653ce1cee9e040e6cd9de66cc99d034d"><strong>[mssql] </strong></span>Fixed &#8220;default schema&#8221; query to work with
pymssql backend.<a class="changeset-link reference internal" href="#change-653ce1cee9e040e6cd9de66cc99d034d">(link)</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.4-oracle">
<h3>oracle<a class="headerlink" href="#change-0.6.4-oracle" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.4-41"><span class="target" id="change-c4096e037bacbf97eddd92b0034f98ca"><strong>[oracle] </strong></span>Added ROWID type to the Oracle dialect, for those
cases where an explicit CAST might be needed.<a class="changeset-link reference internal" href="#change-c4096e037bacbf97eddd92b0034f98ca">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1879">#1879</a></p>
</p>
</li>
<li><p id="change-0.6.4-42"><span class="target" id="change-0c48f10bbe06c8a4b97b10e3f86708d7"><strong>[oracle] </strong></span>Oracle reflection of indexes has been tuned so
that indexes which include some or all primary
key columns, but not the same set of columns
as that of the primary key, are reflected.
Indexes which contain the identical columns
as that of the primary key are skipped within
reflection, as the index in that case is assumed
to be the auto-generated primary key index.
Previously, any index with PK columns present
would be skipped.  Thanks to Kent Bower
for the patch.<a class="changeset-link reference internal" href="#change-0c48f10bbe06c8a4b97b10e3f86708d7">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1867">#1867</a></p>
</p>
</li>
<li><p id="change-0.6.4-43"><span class="target" id="change-ee4487a1aebbf952cb6ceaac4cb47cc8"><strong>[oracle] </strong></span>Oracle now reflects the names of primary key
constraints - also thanks to Kent Bower.<a class="changeset-link reference internal" href="#change-ee4487a1aebbf952cb6ceaac4cb47cc8">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1868">#1868</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.4-firebird">
<h3>firebird<a class="headerlink" href="#change-0.6.4-firebird" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.4-44"><span class="target" id="change-92ab44e94581b35f750bf10f4e470570"><strong>[firebird] </strong></span>Fixed bug whereby a column default would fail to
reflect if the &#8220;default&#8221; keyword were lower case.<a class="changeset-link reference internal" href="#change-92ab44e94581b35f750bf10f4e470570">(link)</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.4-misc">
<h3>misc<a class="headerlink" href="#change-0.6.4-misc" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.4-45"><span class="target" id="change-431a87a1564f158a2d2ac1b341792ad1"><strong>[informix] </strong></span>Applied patches from to get
basic Informix functionality up again.  We
rely upon end-user testing to ensure that
Informix is working to some degree.<a class="changeset-link reference internal" href="#change-431a87a1564f158a2d2ac1b341792ad1">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1904">#1904</a></p>
</p>
</li>
<li><p id="change-0.6.4-46"><span class="target" id="change-d47912608c4830253d4f01066a3062bb"><strong>[documentation] </strong></span>The docs have been reorganized such that the &#8220;API
Reference&#8221; section is gone - all the docstrings from
there which were public API are moved into the
context of the main doc section that talks about it.
Main docs divided into &#8220;SQLAlchemy Core&#8221; and
&#8220;SQLAlchemy ORM&#8221; sections, mapper/relationship docs
have been broken out. Lots of sections rewritten
and/or reorganized.<a class="changeset-link reference internal" href="#change-d47912608c4830253d4f01066a3062bb">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.4-47"><span class="target" id="change-4d0bf2f6176ff585be192cce5473508e"><strong>[examples] </strong></span>The beaker_caching example has been reorgnized
such that the Session, cache manager,
declarative_base are part of environment, and
custom cache code is portable and now within
&#8220;caching_query.py&#8221;.  This allows the example to
be easier to &#8220;drop in&#8221; to existing projects.<a class="changeset-link reference internal" href="#change-4d0bf2f6176ff585be192cce5473508e">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.4-48"><span class="target" id="change-723cdb6f299e5eb37115fdceb06a6607"><strong>[examples] </strong></span>the history_meta versioning recipe sets &#8220;unique=False&#8221;
when copying columns, so that the versioning
table handles multiple rows with repeating values.<a class="changeset-link reference internal" href="#change-723cdb6f299e5eb37115fdceb06a6607">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1887">#1887</a></p>
</p>
</li>
</ul>
</div>
</div>
<div class="section" id="change-0.6.3">
<h2>0.6.3<a class="headerlink" href="#change-0.6.3" title="Permalink to this headline">¶</a></h2>
Released: Thu Jul 15 2010<div class="section" id="change-0.6.3-orm">
<h3>orm<a class="headerlink" href="#change-0.6.3-orm" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.3-0"><span class="target" id="change-4e1bf9516dda613ab1a572293546c083"><strong>[orm] </strong></span>Removed errant many-to-many load in unitofwork
which triggered unnecessarily on expired/unloaded
collections. This load now takes place only if
passive_updates is False and the parent primary
key has changed, or if passive_deletes is False
and a delete of the parent has occurred.<a class="changeset-link reference internal" href="#change-4e1bf9516dda613ab1a572293546c083">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1845">#1845</a></p>
</p>
</li>
<li><p id="change-0.6.3-1"><span class="target" id="change-e9a54d540af9838dfb180c80efdf1e83"><strong>[orm] </strong></span>Column-entities (i.e. query(Foo.id)) copy their
state more fully when queries are derived from
themselves + a selectable (i.e. from_self(),
union(), etc.), so that join() and such have the
correct state to work from.<a class="changeset-link reference internal" href="#change-e9a54d540af9838dfb180c80efdf1e83">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1853">#1853</a></p>
</p>
</li>
<li><p id="change-0.6.3-2"><span class="target" id="change-fb73bd1dbda53a059f9cdc6d0d8ccf45"><strong>[orm] </strong></span>Fixed bug where Query.join() would fail if
querying a non-ORM column then joining without
an on clause when a FROM clause is already
present, now raises a checked exception the
same way it does when the clause is not
present.<a class="changeset-link reference internal" href="#change-fb73bd1dbda53a059f9cdc6d0d8ccf45">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1853">#1853</a></p>
</p>
</li>
<li><p id="change-0.6.3-3"><span class="target" id="change-03a152a294855452e7463fb4ac21ffd6"><strong>[orm] </strong></span>Improved the check for an &#8220;unmapped class&#8221;,
including the case where the superclass is mapped
but the subclass is not.  Any attempts to access
cls._sa_class_manager.mapper now raise
UnmappedClassError().<a class="changeset-link reference internal" href="#change-03a152a294855452e7463fb4ac21ffd6">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1142">#1142</a></p>
</p>
</li>
<li><p id="change-0.6.3-4"><span class="target" id="change-f9299feaa7fe289b5bdc8377a2dcdb09"><strong>[orm] </strong></span>Added &#8220;column_descriptions&#8221; accessor to Query,
returns a list of dictionaries containing
naming/typing information about the entities
the Query will return.  Can be helpful for
building GUIs on top of ORM queries.<a class="changeset-link reference internal" href="#change-f9299feaa7fe289b5bdc8377a2dcdb09">(link)</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.3-mysql">
<h3>mysql<a class="headerlink" href="#change-0.6.3-mysql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.3-5"><span class="target" id="change-40d3531e4ce4a40c3c74e0f48699dccc"><strong>[mysql] </strong></span>The _extract_error_code() method now works
correctly with each MySQL dialect (
MySQL-python, OurSQL, MySQL-Connector-Python,
PyODBC).  Previously,
the reconnect logic would fail for OperationalError
conditions, however since MySQLdb and OurSQL
have their own reconnect feature, there was no
symptom for these drivers here unless one
watched the logs.<a class="changeset-link reference internal" href="#change-40d3531e4ce4a40c3c74e0f48699dccc">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1848">#1848</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.3-oracle">
<h3>oracle<a class="headerlink" href="#change-0.6.3-oracle" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.3-6"><span class="target" id="change-41dfa08c3915f42b47619e4e28ee162f"><strong>[oracle] </strong></span>More tweaks to cx_oracle Decimal handling.
&#8220;Ambiguous&#8221; numerics with no decimal place
are coerced to int at the connection handler
level.  The advantage here is that ints
come back as ints without SQLA type
objects being involved and without needless
conversion to Decimal first.<p>Unfortunately, some exotic subquery cases
can even see different types between
individual result rows, so the Numeric
handler, when instructed to return Decimal,
can&#8217;t take full advantage of &#8220;native decimal&#8221;
mode and must run isinstance() on every value
to check if its Decimal already. Reopen of</p>
<a class="changeset-link reference internal" href="#change-41dfa08c3915f42b47619e4e28ee162f">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1840">#1840</a></p>
</p>
</li>
</ul>
</div>
</div>
<div class="section" id="change-0.6.2">
<h2>0.6.2<a class="headerlink" href="#change-0.6.2" title="Permalink to this headline">¶</a></h2>
Released: Tue Jul 06 2010<div class="section" id="change-0.6.2-orm">
<h3>orm<a class="headerlink" href="#change-0.6.2-orm" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.2-0"><span class="target" id="change-edf1e1a95a7fcdc97aa5ad0561516766"><strong>[orm] </strong></span>Query.join() will check for a call of the
form query.join(target, clause_expression),
i.e. missing the tuple, and raise an informative
error message that this is the wrong calling form.<a class="changeset-link reference internal" href="#change-edf1e1a95a7fcdc97aa5ad0561516766">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.2-1"><span class="target" id="change-d632a942ba2390aa0d69b7b8d3db7726"><strong>[orm] </strong></span>Fixed bug regarding flushes on self-referential
bi-directional many-to-many relationships, where
two objects made to mutually reference each other
in one flush would fail to insert a row for both
sides.  Regression from 0.5.<a class="changeset-link reference internal" href="#change-d632a942ba2390aa0d69b7b8d3db7726">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1824">#1824</a></p>
</p>
</li>
<li><p id="change-0.6.2-2"><span class="target" id="change-38b01fe13c4a4ea626916c8378f614d5"><strong>[orm] </strong></span>the post_update feature of relationship() has been
reworked architecturally to integrate more closely
with the new 0.6 unit of work.  The motivation
for the change is so that multiple &#8220;post update&#8221;
calls, each affecting different foreign key
columns of the same row, are executed in a single
UPDATE statement, rather than one UPDATE
statement per column per row.   Multiple row
updates are also batched into executemany()s as
possible, while maintaining consistent row ordering.<a class="changeset-link reference internal" href="#change-38b01fe13c4a4ea626916c8378f614d5">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.2-3"><span class="target" id="change-ec68a36d898ae8d2624447dffe1f74b3"><strong>[orm] </strong></span>Query.statement, Query.subquery(), etc. now transfer
the values of bind parameters, i.e. those specified
by query.params(), into the resulting SQL expression.
Previously the values would not be transferred
and bind parameters would come out as None.<a class="changeset-link reference internal" href="#change-ec68a36d898ae8d2624447dffe1f74b3">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.2-4"><span class="target" id="change-8e80dd442877d5cc6d55d1eb9f2e27ce"><strong>[orm] </strong></span>Subquery-eager-loading now works with Query objects
which include params(), as well as get() Queries.<a class="changeset-link reference internal" href="#change-8e80dd442877d5cc6d55d1eb9f2e27ce">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.2-5"><span class="target" id="change-89c7ce031cec5770d7feff6d59f82173"><strong>[orm] </strong></span>Can now call make_transient() on an instance that
is referenced by parent objects via many-to-one,
without the parent&#8217;s foreign key value getting
temporarily set to None - this was a function
of the &#8220;detect primary key switch&#8221; flush handler.
It now ignores objects that are no longer
in the &#8220;persistent&#8221; state, and the parent&#8217;s
foreign key identifier is left unaffected.<a class="changeset-link reference internal" href="#change-89c7ce031cec5770d7feff6d59f82173">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.2-6"><span class="target" id="change-02c64ac9aea77a533f8caaee63e2dd2e"><strong>[orm] </strong></span>query.order_by() now accepts False, which cancels
any existing order_by() state on the Query, allowing
subsequent generative methods to be called which do
not support ORDER BY.  This is not the same as the
already existing feature of passing None, which
suppresses any existing order_by() settings, including
those configured on the mapper.  False will make it
as though order_by() was never called, while
None is an active setting.<a class="changeset-link reference internal" href="#change-02c64ac9aea77a533f8caaee63e2dd2e">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.2-7"><span class="target" id="change-fc22e992cca054293cfca434a70f8339"><strong>[orm] </strong></span>An instance which is moved to &#8220;transient&#8221;, has
an incomplete or missing set of primary key
attributes, and contains expired attributes, will
raise an InvalidRequestError if an expired attribute
is accessed, instead of getting a recursion overflow.<a class="changeset-link reference internal" href="#change-fc22e992cca054293cfca434a70f8339">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.2-8"><span class="target" id="change-f2c43f7ce40d71c11c2f7faf46d66f4a"><strong>[orm] </strong></span>The make_transient() function is now in the generated
documentation.<a class="changeset-link reference internal" href="#change-f2c43f7ce40d71c11c2f7faf46d66f4a">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.2-9"><span class="target" id="change-9cb3e05a83cf387929738297b264ccf9"><strong>[orm] </strong></span>make_transient() removes all &#8220;loader&#8221; callables from
the state being made transient, removing any
&#8220;expired&#8221; state - all unloaded attributes reset back
to undefined, None/empty on access.<a class="changeset-link reference internal" href="#change-9cb3e05a83cf387929738297b264ccf9">(link)</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.2-orm-declarative">
<h3>orm declarative<a class="headerlink" href="#change-0.6.2-orm-declarative" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.2-10"><span class="target" id="change-586d7016a7038e911f333b3d048f0c80"><strong>[declarative] [orm] </strong></span>Added support for &#64;classproperty to provide
any kind of schema/mapping construct from a
declarative mixin, including columns with foreign
keys, relationships, column_property, deferred.
This solves all such issues on declarative mixins.
An error is raised if any MapperProperty subclass
is specified on a mixin without using &#64;classproperty.<a class="changeset-link reference internal" href="#change-586d7016a7038e911f333b3d048f0c80">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1805">#1805</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1796">#1796</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1751">#1751</a></p>
</p>
</li>
<li><p id="change-0.6.2-11"><span class="target" id="change-f1e04d8a9d224260a51570d93bc2bf4b"><strong>[declarative] [orm] </strong></span>a mixin class can now define a column that matches
one which is present on a __table__ defined on a
subclass.  It cannot, however, define one that is
not present in the __table__, and the error message
here now works.<a class="changeset-link reference internal" href="#change-f1e04d8a9d224260a51570d93bc2bf4b">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1821">#1821</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.2-sql">
<h3>sql<a class="headerlink" href="#change-0.6.2-sql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.2-12"><span class="target" id="change-92eb958a7927c4e9caecec020272c06f"><strong>[sql] </strong></span>The warning emitted by the Unicode and String types
with convert_unicode=True no longer embeds the actual
value passed.   This so that the Python warning
registry does not continue to grow in size, the warning
is emitted once as per the warning filter settings,
and large string values don&#8217;t pollute the output.<a class="changeset-link reference internal" href="#change-92eb958a7927c4e9caecec020272c06f">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1822">#1822</a></p>
</p>
</li>
<li><p id="change-0.6.2-13"><span class="target" id="change-7ac2b12e9e86167b88a0806d4cbbe9fb"><strong>[sql] </strong></span>Fixed bug that would prevent overridden clause
compilation from working for &#8220;annotated&#8221; expression
elements, which are often generated by the ORM.<a class="changeset-link reference internal" href="#change-7ac2b12e9e86167b88a0806d4cbbe9fb">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.2-14"><span class="target" id="change-5e141a144264b09de7321f5569bcd21d"><strong>[sql] </strong></span>The argument to &#8220;ESCAPE&#8221; of a LIKE operator or similar
is passed through render_literal_value(), which may
implement escaping of backslashes.<a class="changeset-link reference internal" href="#change-5e141a144264b09de7321f5569bcd21d">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1400">#1400</a></p>
</p>
</li>
<li><p id="change-0.6.2-15"><span class="target" id="change-854fbd022574e164314a3322bae40806"><strong>[sql] </strong></span>Fixed bug in Enum type which blew away native_enum
flag when used with TypeDecorators or other adaption
scenarios.<a class="changeset-link reference internal" href="#change-854fbd022574e164314a3322bae40806">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.2-16"><span class="target" id="change-da5d7dd83b9b8e3fa3dfc3c698adee89"><strong>[sql] </strong></span>Inspector hits bind.connect() when invoked to ensure
initialize has been called.  the internal name &#8221;.conn&#8221;
is changed to &#8221;.bind&#8221;, since that&#8217;s what it is.<a class="changeset-link reference internal" href="#change-da5d7dd83b9b8e3fa3dfc3c698adee89">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.2-17"><span class="target" id="change-7031856f1234d33d0ce85911ecb27356"><strong>[sql] </strong></span>Modified the internals of &#8220;column annotation&#8221; such that
a custom Column subclass can safely override
_constructor to return Column, for the purposes of
making &#8220;configurational&#8221; column classes that aren&#8217;t
involved in proxying, etc.<a class="changeset-link reference internal" href="#change-7031856f1234d33d0ce85911ecb27356">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.2-18"><span class="target" id="change-10d73e5cbbe7209624f8a76e237438c6"><strong>[sql] </strong></span>Column.copy() takes along the &#8220;unique&#8221; attribute
among others, fixes regarding declarative
mixins<a class="changeset-link reference internal" href="#change-10d73e5cbbe7209624f8a76e237438c6">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1829">#1829</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.2-postgresql">
<h3>postgresql<a class="headerlink" href="#change-0.6.2-postgresql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.2-19"><span class="target" id="change-a99b1c9cecc1e928c742b45ef8f90cc3"><strong>[postgresql] </strong></span>render_literal_value() is overridden which escapes
backslashes, currently applies to the ESCAPE clause
of LIKE and similar expressions.
Ultimately this will have to detect the value of
&#8220;standard_conforming_strings&#8221; for full behavior.<a class="changeset-link reference internal" href="#change-a99b1c9cecc1e928c742b45ef8f90cc3">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1400">#1400</a></p>
</p>
</li>
<li><p id="change-0.6.2-20"><span class="target" id="change-48af7b36fa4c3f12a67261b2f80d7865"><strong>[postgresql] </strong></span>Won&#8217;t generate &#8220;CREATE TYPE&#8221; / &#8220;DROP TYPE&#8221; if
using types.Enum on a PG version prior to 8.3 -
the supports_native_enum flag is fully
honored.<a class="changeset-link reference internal" href="#change-48af7b36fa4c3f12a67261b2f80d7865">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1836">#1836</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.2-mysql">
<h3>mysql<a class="headerlink" href="#change-0.6.2-mysql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.2-21"><span class="target" id="change-91f3d4d5f1ca37036afc83b8e87c588c"><strong>[mysql] </strong></span>MySQL dialect doesn&#8217;t emit CAST() for MySQL version
detected &lt; 4.0.2.  This allows the unicode
check on connect to proceed.<a class="changeset-link reference internal" href="#change-91f3d4d5f1ca37036afc83b8e87c588c">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1826">#1826</a></p>
</p>
</li>
<li><p id="change-0.6.2-22"><span class="target" id="change-5984734c58273d70156013fa76eb8074"><strong>[mysql] </strong></span>MySQL dialect now detects NO_BACKSLASH_ESCAPES sql
mode, in addition to ANSI_QUOTES.<a class="changeset-link reference internal" href="#change-5984734c58273d70156013fa76eb8074">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.2-23"><span class="target" id="change-a99b1c9cecc1e928c742b45ef8f90cc3"><strong>[mysql] </strong></span>render_literal_value() is overridden which escapes
backslashes, currently applies to the ESCAPE clause
of LIKE and similar expressions.   This behavior
is derived from detecting the value of
NO_BACKSLASH_ESCAPES.<a class="changeset-link reference internal" href="#change-a99b1c9cecc1e928c742b45ef8f90cc3">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1400">#1400</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.2-mssql">
<h3>mssql<a class="headerlink" href="#change-0.6.2-mssql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.2-24"><span class="target" id="change-0e401708966cccc9a7cc010adc04da9a"><strong>[mssql] </strong></span>If server_version_info is outside the usual
range of (8, ), (9, ), (10, ), a warning is emitted
which suggests checking that the FreeTDS version
configuration is using 7.0 or 8.0, not 4.2.<a class="changeset-link reference internal" href="#change-0e401708966cccc9a7cc010adc04da9a">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1825">#1825</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.2-oracle">
<h3>oracle<a class="headerlink" href="#change-0.6.2-oracle" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.2-25"><span class="target" id="change-8d37a789557837ae28f36a0368b2b8a3"><strong>[oracle] </strong></span>Fixed ora-8 compatibility flags such that they
don&#8217;t cache a stale value from before the first
database connection actually occurs.<a class="changeset-link reference internal" href="#change-8d37a789557837ae28f36a0368b2b8a3">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1819">#1819</a></p>
</p>
</li>
<li><p id="change-0.6.2-26"><span class="target" id="change-7cd2a1495d29a7ea446ff63e34a7e290"><strong>[oracle] </strong></span>Oracle&#8217;s &#8220;native decimal&#8221; metadata begins to return
ambiguous typing information about numerics
when columns are embedded in subqueries as well
as when ROWNUM is consulted with subqueries, as we
do for limit/offset.  We&#8217;ve added these ambiguous
conditions to the cx_oracle &#8220;convert to Decimal()&#8221;
handler, so that we receive numerics as Decimal
in more cases instead of as floats.  These are
then converted, if requested, into Integer
or Float, or otherwise kept as the lossless
Decimal.<a class="changeset-link reference internal" href="#change-7cd2a1495d29a7ea446ff63e34a7e290">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1840">#1840</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.2-firebird">
<h3>firebird<a class="headerlink" href="#change-0.6.2-firebird" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.2-27"><span class="target" id="change-8020c6a07179eb3773cff83bf7e318ac"><strong>[firebird] </strong></span>Fixed incorrect signature in do_execute(), error
introduced in 0.6.1.<a class="changeset-link reference internal" href="#change-8020c6a07179eb3773cff83bf7e318ac">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1823">#1823</a></p>
</p>
</li>
<li><p id="change-0.6.2-28"><span class="target" id="change-911be84370c3f1ad4939567277f70d73"><strong>[firebird] </strong></span>Firebird dialect adds CHAR, VARCHAR types which
accept a &#8220;charset&#8221; flag, to support Firebird
&#8220;CHARACTER SET&#8221; clause.<a class="changeset-link reference internal" href="#change-911be84370c3f1ad4939567277f70d73">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1813">#1813</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.2-misc">
<h3>misc<a class="headerlink" href="#change-0.6.2-misc" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.2-29"><span class="target" id="change-af1b71d292a858ea4df75271507ce565"><strong>[extension] [compiler] </strong></span>The &#8216;default&#8217; compiler is automatically copied over
when overriding the compilation of a built in
clause construct, so no KeyError is raised if the
user-defined compiler is specific to certain
backends and compilation for a different backend
is invoked.<a class="changeset-link reference internal" href="#change-af1b71d292a858ea4df75271507ce565">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1838">#1838</a></p>
</p>
</li>
<li><p id="change-0.6.2-30"><span class="target" id="change-848469658bfe0128fab72a42bba6e792"><strong>[documentation] </strong></span>Added documentation for the Inspector.<a class="changeset-link reference internal" href="#change-848469658bfe0128fab72a42bba6e792">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1820">#1820</a></p>
</p>
</li>
<li><p id="change-0.6.2-31"><span class="target" id="change-4e33e10eba62ee01d6af5ccb29637f33"><strong>[documentation] </strong></span>Fixed &#64;memoized_property and &#64;memoized_instancemethod
decorators so that Sphinx documentation picks up
these attributes and methods, such as
ResultProxy.inserted_primary_key.<a class="changeset-link reference internal" href="#change-4e33e10eba62ee01d6af5ccb29637f33">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1830">#1830</a></p>
</p>
</li>
</ul>
</div>
</div>
<div class="section" id="change-0.6.1">
<h2>0.6.1<a class="headerlink" href="#change-0.6.1" title="Permalink to this headline">¶</a></h2>
Released: Mon May 31 2010<div class="section" id="change-0.6.1-orm">
<h3>orm<a class="headerlink" href="#change-0.6.1-orm" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.1-0"><span class="target" id="change-3ad0634282071d683ecb076a3c1171ba"><strong>[orm] </strong></span>Fixed regression introduced in 0.6.0 involving improper
history accounting on mutable attributes.<a class="changeset-link reference internal" href="#change-3ad0634282071d683ecb076a3c1171ba">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1782">#1782</a></p>
</p>
</li>
<li><p id="change-0.6.1-1"><span class="target" id="change-f27d049a3ba382d9d975d84ab7db1040"><strong>[orm] </strong></span>Fixed regression introduced in 0.6.0 unit of work refactor
that broke updates for bi-directional relationship()
with post_update=True.<a class="changeset-link reference internal" href="#change-f27d049a3ba382d9d975d84ab7db1040">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1807">#1807</a></p>
</p>
</li>
<li><p id="change-0.6.1-2"><span class="target" id="change-a5d06f591c00a5eb1caf7412dbddb887"><strong>[orm] </strong></span>session.merge() will not expire attributes on the returned
instance if that instance is &#8220;pending&#8221;.<a class="changeset-link reference internal" href="#change-a5d06f591c00a5eb1caf7412dbddb887">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1789">#1789</a></p>
</p>
</li>
<li><p id="change-0.6.1-3"><span class="target" id="change-b9cf399b6f68b033fd9ea792f88bd39b"><strong>[orm] </strong></span>fixed __setstate__ method of CollectionAdapter to not
fail during deserialize where parent InstanceState not
yet unserialized.<a class="changeset-link reference internal" href="#change-b9cf399b6f68b033fd9ea792f88bd39b">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1802">#1802</a></p>
</p>
</li>
<li><p id="change-0.6.1-4"><span class="target" id="change-284309c7b5f31be13e7f4fa173f0d4e6"><strong>[orm] </strong></span>Added internal warning in case an instance without a
full PK happened to be expired and then was asked
to refresh.<a class="changeset-link reference internal" href="#change-284309c7b5f31be13e7f4fa173f0d4e6">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1797">#1797</a></p>
</p>
</li>
<li><p id="change-0.6.1-5"><span class="target" id="change-9092dd0fbb06e94417193ea80605814f"><strong>[orm] </strong></span>Added more aggressive caching to the mapper&#8217;s usage of
UPDATE, INSERT, and DELETE expressions.  Assuming the
statement has no per-object SQL expressions attached,
the expression objects are cached by the mapper after
the first create, and their compiled form is stored
persistently in a cache dictionary for the duration of
the related Engine.  The cache is an LRUCache for the
rare case that a mapper receives an extremely
high number of different column patterns as UPDATEs.<a class="changeset-link reference internal" href="#change-9092dd0fbb06e94417193ea80605814f">(link)</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.1-sql">
<h3>sql<a class="headerlink" href="#change-0.6.1-sql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.1-6"><span class="target" id="change-b08316c6ff8d2199ee21227c71237c3c"><strong>[sql] </strong></span>expr.in_() now accepts a text() construct as the argument.
Grouping parenthesis are added automatically, i.e. usage
is like <cite>col.in_(text(&#8220;select id from table&#8221;))</cite>.<a class="changeset-link reference internal" href="#change-b08316c6ff8d2199ee21227c71237c3c">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1793">#1793</a></p>
</p>
</li>
<li><p id="change-0.6.1-7"><span class="target" id="change-72ff9fd4e95f73a9fac5793d46ee1989"><strong>[sql] </strong></span>Columns of _Binary type (i.e. LargeBinary, BLOB, etc.)
will coerce a &#8220;basestring&#8221; on the right side into a
_Binary as well so that required DBAPI processing
takes place.<a class="changeset-link reference internal" href="#change-72ff9fd4e95f73a9fac5793d46ee1989">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.1-8"><span class="target" id="change-8d17b953e1ac169718caf18058bcd4a7"><strong>[sql] </strong></span>Added table.add_is_dependent_on(othertable), allows manual
placement of dependency rules between two Table objects
for use within create_all(), drop_all(), sorted_tables.<a class="changeset-link reference internal" href="#change-8d17b953e1ac169718caf18058bcd4a7">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1801">#1801</a></p>
</p>
</li>
<li><p id="change-0.6.1-9"><span class="target" id="change-8952d0409ec113323968a616d7b3ff95"><strong>[sql] </strong></span>Fixed bug that prevented implicit RETURNING from functioning
properly with composite primary key that contained zeroes.<a class="changeset-link reference internal" href="#change-8952d0409ec113323968a616d7b3ff95">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1778">#1778</a></p>
</p>
</li>
<li><p id="change-0.6.1-10"><span class="target" id="change-82e4196d3222e0f8f2f39d0d56b49b68"><strong>[sql] </strong></span>Fixed errant space character when generating ADD CONSTRAINT
for a named UNIQUE constraint.<a class="changeset-link reference internal" href="#change-82e4196d3222e0f8f2f39d0d56b49b68">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.1-11"><span class="target" id="change-946f08fd63ce4b879c2fba51fc21eccf"><strong>[sql] </strong></span>Fixed &#8220;table&#8221; argument on constructor of ForeginKeyConstraint<a class="changeset-link reference internal" href="#change-946f08fd63ce4b879c2fba51fc21eccf">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1571">#1571</a></p>
</p>
</li>
<li><p id="change-0.6.1-12"><span class="target" id="change-e8fbe83ec8fc5eea2bdba7a800b0782f"><strong>[sql] </strong></span>Fixed bug in connection pool cursor wrapper whereby if a
cursor threw an exception on close(), the logging of the
message would fail.<a class="changeset-link reference internal" href="#change-e8fbe83ec8fc5eea2bdba7a800b0782f">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1786">#1786</a></p>
</p>
</li>
<li><p id="change-0.6.1-13"><span class="target" id="change-a4876a0985ffddb6e31acca9c07979e7"><strong>[sql] </strong></span>the _make_proxy() method of ColumnClause and Column now use
self.__class__ to determine the class of object to be returned
instead of hardcoding to ColumnClause/Column, making it slightly
easier to produce specific subclasses of these which work in
alias/subquery situations.<a class="changeset-link reference internal" href="#change-a4876a0985ffddb6e31acca9c07979e7">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.1-14"><span class="target" id="change-cabf1086effe5bf3e53e5eb62e0a539f"><strong>[sql] </strong></span>func.XXX() doesn&#8217;t inadvertently resolve to non-Function
classes (e.g. fixes func.text()).<a class="changeset-link reference internal" href="#change-cabf1086effe5bf3e53e5eb62e0a539f">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1798">#1798</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.1-mysql">
<h3>mysql<a class="headerlink" href="#change-0.6.1-mysql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.1-15"><span class="target" id="change-aa357253b7d4e61fb60fe4179f37c4c4"><strong>[mysql] </strong></span>func.sysdate() emits &#8220;SYSDATE()&#8221;, i.e. with the ending
parenthesis, on MySQL.<a class="changeset-link reference internal" href="#change-aa357253b7d4e61fb60fe4179f37c4c4">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1794">#1794</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.1-sqlite">
<h3>sqlite<a class="headerlink" href="#change-0.6.1-sqlite" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.1-16"><span class="target" id="change-f93c6942e6696df34b2e495e1a798242"><strong>[sqlite] </strong></span>Fixed concatenation of constraints when &#8220;PRIMARY KEY&#8221;
constraint gets moved to column level due to SQLite
AUTOINCREMENT keyword being rendered.<a class="changeset-link reference internal" href="#change-f93c6942e6696df34b2e495e1a798242">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1812">#1812</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.1-oracle">
<h3>oracle<a class="headerlink" href="#change-0.6.1-oracle" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.1-17"><span class="target" id="change-921c563fd599609c36d48fca98c94857"><strong>[oracle] </strong></span>Added a check for cx_oracle versions lower than version 5,
in which case the incompatible &#8220;output type handler&#8221; won&#8217;t
be used.   This will impact decimal accuracy and some
unicode handling issues.<a class="changeset-link reference internal" href="#change-921c563fd599609c36d48fca98c94857">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1775">#1775</a></p>
</p>
</li>
<li><p id="change-0.6.1-18"><span class="target" id="change-de39458c5cf40832d3e712046e906059"><strong>[oracle] </strong></span>Fixed use_ansi=False mode, which was producing broken
WHERE clauses in pretty much all cases.<a class="changeset-link reference internal" href="#change-de39458c5cf40832d3e712046e906059">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1790">#1790</a></p>
</p>
</li>
<li><p id="change-0.6.1-19"><span class="target" id="change-c5cd67d9af16519e3e1648d461a6fa18"><strong>[oracle] </strong></span>Re-established support for Oracle 8 with cx_oracle,
including that use_ansi is set to False automatically,
NVARCHAR2 and NCLOB are not rendered for Unicode,
&#8220;native unicode&#8221; check doesn&#8217;t fail, cx_oracle
&#8220;native unicode&#8221; mode is disabled, VARCHAR() is emitted
with bytes count instead of char count.<a class="changeset-link reference internal" href="#change-c5cd67d9af16519e3e1648d461a6fa18">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1808">#1808</a></p>
</p>
</li>
<li><p id="change-0.6.1-20"><span class="target" id="change-42bad8b40515caa95e779b1bb6592e72"><strong>[oracle] </strong></span>oracle_xe 5 doesn&#8217;t accept a Python unicode object in
its connect string in normal Python 2.x mode - so we coerce
to str() directly.  non-ascii characters aren&#8217;t supported
in connect strings here since we don&#8217;t know what encoding
we could use.<a class="changeset-link reference internal" href="#change-42bad8b40515caa95e779b1bb6592e72">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1670">#1670</a></p>
</p>
</li>
<li><p id="change-0.6.1-21"><span class="target" id="change-c4fb3d2d0a0c5a82038662d1a131caa4"><strong>[oracle] </strong></span>FOR UPDATE is emitted in the syntactically correct position
when limit/offset is used, i.e. the ROWNUM subquery.
However, Oracle can&#8217;t really handle FOR UPDATE with ORDER BY
or with subqueries, so its still not very usable, but at
least SQLA gets the SQL past the Oracle parser.<a class="changeset-link reference internal" href="#change-c4fb3d2d0a0c5a82038662d1a131caa4">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1815">#1815</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.1-firebird">
<h3>firebird<a class="headerlink" href="#change-0.6.1-firebird" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.1-22"><span class="target" id="change-91fe7d4094c4263398493a015350a1ed"><strong>[firebird] </strong></span>Added a label to the query used within has_table() and
has_sequence() to work with older versions of Firebird
that don&#8217;t provide labels for result columns.<a class="changeset-link reference internal" href="#change-91fe7d4094c4263398493a015350a1ed">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1521">#1521</a></p>
</p>
</li>
<li><p id="change-0.6.1-23"><span class="target" id="change-0d74fea7bfb3e3c84d0515cc593d4d87"><strong>[firebird] </strong></span>Added integer coercion to the &#8220;type_conv&#8221; attribute when
passed via query string, so that it is properly interpreted
by Kinterbasdb.<a class="changeset-link reference internal" href="#change-0d74fea7bfb3e3c84d0515cc593d4d87">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1779">#1779</a></p>
</p>
</li>
<li><p id="change-0.6.1-24"><span class="target" id="change-03bb6ab00e44c5f02f340d559a5dab0f"><strong>[firebird] </strong></span>Added &#8216;connection shutdown&#8217; to the list of exception strings
which indicate a dropped connection.<a class="changeset-link reference internal" href="#change-03bb6ab00e44c5f02f340d559a5dab0f">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1646">#1646</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.1-misc">
<h3>misc<a class="headerlink" href="#change-0.6.1-misc" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.1-25"><span class="target" id="change-df53735fe0fac1271ec8b185d92b917c"><strong>[engines] </strong></span>Fixed building the C extensions on Python 2.4.<a class="changeset-link reference internal" href="#change-df53735fe0fac1271ec8b185d92b917c">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1781">#1781</a></p>
</p>
</li>
<li><p id="change-0.6.1-26"><span class="target" id="change-bd1c201152d89a2c0a9fce60d6eb9f10"><strong>[engines] </strong></span>Pool classes will reuse the same &#8220;pool_logging_name&#8221; setting
after a dispose() occurs.<a class="changeset-link reference internal" href="#change-bd1c201152d89a2c0a9fce60d6eb9f10">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.1-27"><span class="target" id="change-d98f14529ec58cd4e539be4876c55109"><strong>[engines] </strong></span>Engine gains an &#8220;execution_options&#8221; argument and
update_execution_options() method, which will apply to
all connections generated by this engine.<a class="changeset-link reference internal" href="#change-d98f14529ec58cd4e539be4876c55109">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.1-28"><span class="target" id="change-6bd58738b79dc1de9e4c774f875c967e"><strong>[sqlsoup] </strong></span>the SqlSoup constructor accepts a <cite>base</cite> argument which specifies
the base class to use for mapped classes, the default being
<cite>object</cite>.<a class="changeset-link reference internal" href="#change-6bd58738b79dc1de9e4c774f875c967e">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1783">#1783</a></p>
</p>
</li>
</ul>
</div>
</div>
<div class="section" id="change-0.6.0">
<h2>0.6.0<a class="headerlink" href="#change-0.6.0" title="Permalink to this headline">¶</a></h2>
Released: Sun Apr 18 2010<div class="section" id="change-0.6.0-orm">
<h3>orm<a class="headerlink" href="#change-0.6.0-orm" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.0-0"><span class="target" id="change-3b1217c725cfaca8d0f18b95fec0c71d"><strong>[orm] </strong></span>Unit of work internals have been rewritten.  Units of work
with large numbers of objects interdependent objects
can now be flushed without recursion overflows
as there is no longer reliance upon recursive calls.  The number of internal structures now stays
constant for a particular session state, regardless of
how many relationships are present on mappings.  The flow
of events now corresponds to a linear list of steps,
generated by the mappers and relationships based on actual
work to be done, filtered through a single topological sort
for correct ordering.  Flush actions are assembled using
far fewer steps and less memory.<a class="changeset-link reference internal" href="#change-3b1217c725cfaca8d0f18b95fec0c71d">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1742">#1742</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1081">#1081</a></p>
</p>
</li>
<li><p id="change-0.6.0-1"><span class="target" id="change-97e2870a10f13e39b21451eade7f34e3"><strong>[orm] </strong></span>Along with the UOW rewrite, this also removes an issue
introduced in 0.6beta3 regarding topological cycle detection
for units of work with long dependency cycles.  We now use
an algorithm written by Guido (thanks Guido!).<a class="changeset-link reference internal" href="#change-97e2870a10f13e39b21451eade7f34e3">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.0-2"><span class="target" id="change-2c89e63a7b00b521ab6ebefa3e55a3d8"><strong>[orm] </strong></span>one-to-many relationships now maintain a list of positive
parent-child associations within the flush, preventing
previous parents marked as deleted from cascading a
delete or NULL foreign key set on those child objects,
despite the end-user not removing the child from the old
association.<a class="changeset-link reference internal" href="#change-2c89e63a7b00b521ab6ebefa3e55a3d8">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1764">#1764</a></p>
</p>
</li>
<li><p id="change-0.6.0-3"><span class="target" id="change-de68f57cafdd0eff2e36aba90d68a8d9"><strong>[orm] </strong></span>A collection lazy load will switch off default
eagerloading on the reverse many-to-one side, since
that loading is by definition unnecessary.<a class="changeset-link reference internal" href="#change-de68f57cafdd0eff2e36aba90d68a8d9">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1495">#1495</a></p>
</p>
</li>
<li><p id="change-0.6.0-4"><span class="target" id="change-60b9bbf87ecba4f952f15d81c023040f"><strong>[orm] </strong></span>Session.refresh() now does an equivalent expire()
on the given instance first, so that the &#8220;refresh-expire&#8221;
cascade is propagated.   Previously, refresh() was
not affected in any way by the presence of &#8220;refresh-expire&#8221;
cascade.   This is a change in behavior versus that
of 0.6beta2, where the &#8220;lockmode&#8221; flag passed to refresh()
would cause a version check to occur.  Since the instance
is first expired, refresh() always upgrades the object
to the most recent version.<a class="changeset-link reference internal" href="#change-60b9bbf87ecba4f952f15d81c023040f">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.0-5"><span class="target" id="change-f00123490bb1d2834b93640ea8cbd25d"><strong>[orm] </strong></span>The &#8216;refresh-expire&#8217; cascade, when reaching a pending object,
will expunge the object if the cascade also includes
&#8220;delete-orphan&#8221;, or will simply detach it otherwise.<a class="changeset-link reference internal" href="#change-f00123490bb1d2834b93640ea8cbd25d">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1754">#1754</a></p>
</p>
</li>
<li><p id="change-0.6.0-6"><span class="target" id="change-446d9794507b3c1360eb69dd3f886c1b"><strong>[orm] </strong></span>id(obj) is no longer used internally within topological.py,
as the sorting functions now require hashable objects
only.<a class="changeset-link reference internal" href="#change-446d9794507b3c1360eb69dd3f886c1b">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1756">#1756</a></p>
</p>
</li>
<li><p id="change-0.6.0-7"><span class="target" id="change-89d6d3ab3f04efc830987da850dbcd9f"><strong>[orm] </strong></span>The ORM will set the docstring of all generated descriptors
to None by default.  This can be overridden using &#8216;doc&#8217;
(or if using Sphinx, attribute docstrings work too).<a class="changeset-link reference internal" href="#change-89d6d3ab3f04efc830987da850dbcd9f">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.0-8"><span class="target" id="change-0c5e8a43f7cfd7406db906494f6c86cb"><strong>[orm] </strong></span>Added kw argument &#8216;doc&#8217; to all mapper property callables
as well as Column().  Will assemble the string &#8216;doc&#8217; as
the &#8216;__doc__&#8217; attribute on the descriptor.<a class="changeset-link reference internal" href="#change-0c5e8a43f7cfd7406db906494f6c86cb">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.0-9"><span class="target" id="change-bfa16822997c1406790421c29fcddf84"><strong>[orm] </strong></span>Usage of version_id_col on a backend that supports
cursor.rowcount for execute() but not executemany() now works
when a delete is issued (already worked for saves, since those
don&#8217;t use executemany()). For a backend that doesn&#8217;t support
cursor.rowcount at all, a warning is emitted the same
as with saves.<a class="changeset-link reference internal" href="#change-bfa16822997c1406790421c29fcddf84">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1761">#1761</a></p>
</p>
</li>
<li><p id="change-0.6.0-10"><span class="target" id="change-7c8f475376472ec13a1f37c930bcffc9"><strong>[orm] </strong></span>The ORM now short-term caches the &#8220;compiled&#8221; form of
insert() and update() constructs when flushing lists of
objects of all the same class, thereby avoiding redundant
compilation per individual INSERT/UPDATE within an
individual flush() call.<a class="changeset-link reference internal" href="#change-7c8f475376472ec13a1f37c930bcffc9">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.0-11"><span class="target" id="change-9b2338aa43fcd0bf730a52d5e1a78bf1"><strong>[orm] </strong></span>internal getattr(), setattr(), getcommitted() methods
on ColumnProperty, CompositeProperty, RelationshipProperty
have been underscored (i.e. are private), signature has
changed.<a class="changeset-link reference internal" href="#change-9b2338aa43fcd0bf730a52d5e1a78bf1">(link)</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.0-sql">
<h3>sql<a class="headerlink" href="#change-0.6.0-sql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.0-12"><span class="target" id="change-2ad00fb1fb1dc9fb7c58e6eea6830e93"><strong>[sql] </strong></span>Restored some bind-labeling logic from 0.5 which ensures
that tables with column names that overlap another column
of the form &#8220;&lt;tablename&gt;_&lt;columnname&gt;&#8221; won&#8217;t produce
errors if column._label is used as a bind name during
an UPDATE.  Test coverage which wasn&#8217;t present in 0.5
has been added.<a class="changeset-link reference internal" href="#change-2ad00fb1fb1dc9fb7c58e6eea6830e93">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1755">#1755</a></p>
</p>
</li>
<li><p id="change-0.6.0-13"><span class="target" id="change-8a0a290dfd11b9c9f0b759cacd2c60e7"><strong>[sql] </strong></span>somejoin.select(fold_equivalents=True) is no longer
deprecated, and will eventually be rolled into a more
comprehensive version of the feature for.<a class="changeset-link reference internal" href="#change-8a0a290dfd11b9c9f0b759cacd2c60e7">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1729">#1729</a></p>
</p>
</li>
<li><p id="change-0.6.0-14"><span class="target" id="change-f49c7dce36721a3b7fff421faf1e347f"><strong>[sql] </strong></span>the Numeric type raises an <em>enormous</em> warning when expected
to convert floats to Decimal from a DBAPI that returns floats.
This includes SQLite, Sybase, MS-SQL.<a class="changeset-link reference internal" href="#change-f49c7dce36721a3b7fff421faf1e347f">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1759">#1759</a></p>
</p>
</li>
<li><p id="change-0.6.0-15"><span class="target" id="change-79bb81f03cb8e5df4f9dd9a451f01db2"><strong>[sql] </strong></span>Fixed an error in expression typing which caused an endless
loop for expressions with two NULL types.<a class="changeset-link reference internal" href="#change-79bb81f03cb8e5df4f9dd9a451f01db2">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.0-16"><span class="target" id="change-9a48a170841006eca908993bdd32d73e"><strong>[sql] </strong></span>Fixed bug in execution_options() feature whereby the existing
Transaction and other state information from the parent
connection would not be propagated to the sub-connection.<a class="changeset-link reference internal" href="#change-9a48a170841006eca908993bdd32d73e">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.0-17"><span class="target" id="change-60e732c087d2155ba7f95c3372a0b9e0"><strong>[sql] </strong></span>Added new &#8216;compiled_cache&#8217; execution option.  A dictionary
where Compiled objects will be cached when the Connection
compiles a clause expression into a dialect- and parameter-
specific Compiled object.  It is the user&#8217;s responsibility to
manage the size of this dictionary, which will have keys
corresponding to the dialect, clause element, the column
names within the VALUES or SET clause of an INSERT or UPDATE,
as well as the &#8220;batch&#8221; mode for an INSERT or UPDATE statement.<a class="changeset-link reference internal" href="#change-60e732c087d2155ba7f95c3372a0b9e0">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.0-18"><span class="target" id="change-768b947e2c0ef47ccdae7a24bea4fc76"><strong>[sql] </strong></span>Added get_pk_constraint() to reflection.Inspector, similar
to get_primary_keys() except returns a dict that includes the
name of the constraint, for supported backends (PG so far).<a class="changeset-link reference internal" href="#change-768b947e2c0ef47ccdae7a24bea4fc76">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1769">#1769</a></p>
</p>
</li>
<li><p id="change-0.6.0-19"><span class="target" id="change-9e9da1b03603fbea0a497194ff379a0f"><strong>[sql] </strong></span>Table.create() and Table.drop() no longer apply metadata-
level create/drop events.<a class="changeset-link reference internal" href="#change-9e9da1b03603fbea0a497194ff379a0f">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1771">#1771</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.0-postgresql">
<h3>postgresql<a class="headerlink" href="#change-0.6.0-postgresql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.0-20"><span class="target" id="change-4a1523bb9932656419cad5bb47984b8f"><strong>[postgresql] </strong></span>Postgresql now reflects sequence names associated with
SERIAL columns correctly, after the name of the sequence
has been changed.  Thanks to Kumar McMillan for the patch.<a class="changeset-link reference internal" href="#change-4a1523bb9932656419cad5bb47984b8f">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1071">#1071</a></p>
</p>
</li>
<li><p id="change-0.6.0-21"><span class="target" id="change-f9a992cccbd35a7929c4a9fc18106789"><strong>[postgresql] </strong></span>Repaired missing import in psycopg2._PGNumeric type when
unknown numeric is received.<a class="changeset-link reference internal" href="#change-f9a992cccbd35a7929c4a9fc18106789">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.0-22"><span class="target" id="change-b98fd25854c44f76b567995a581b059f"><strong>[postgresql] </strong></span>psycopg2/pg8000 dialects now aware of REAL[], FLOAT[],
DOUBLE_PRECISION[], NUMERIC[] return types without
raising an exception.<a class="changeset-link reference internal" href="#change-b98fd25854c44f76b567995a581b059f">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.0-23"><span class="target" id="change-795011bac9decfbec163b1e926b9af2e"><strong>[postgresql] </strong></span>Postgresql reflects the name of primary key constraints,
if one exists.<a class="changeset-link reference internal" href="#change-795011bac9decfbec163b1e926b9af2e">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1769">#1769</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.0-oracle">
<h3>oracle<a class="headerlink" href="#change-0.6.0-oracle" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.0-24"><span class="target" id="change-e256b03edc9a352999ab763c545d8369"><strong>[oracle] </strong></span>Now using cx_oracle output converters so that the
DBAPI returns natively the kinds of values we prefer:<a class="changeset-link reference internal" href="#change-e256b03edc9a352999ab763c545d8369">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.0-25"><span class="target" id="change-f9a62b0f03f5c58cd9451cf9002cb497"><strong>[oracle] </strong></span>NUMBER values with positive precision + scale convert
to cx_oracle.STRING and then to Decimal.   This
allows perfect precision for the Numeric type when
using cx_oracle.<a class="changeset-link reference internal" href="#change-f9a62b0f03f5c58cd9451cf9002cb497">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1759">#1759</a></p>
</p>
</li>
<li><p id="change-0.6.0-26"><span class="target" id="change-ddda48d09bea40d9663e1537a8b7b708"><strong>[oracle] </strong></span>STRING/FIXED_CHAR now convert to unicode natively.
SQLAlchemy&#8217;s String types then don&#8217;t need to
apply any kind of conversions.<a class="changeset-link reference internal" href="#change-ddda48d09bea40d9663e1537a8b7b708">(link)</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.0-firebird">
<h3>firebird<a class="headerlink" href="#change-0.6.0-firebird" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.0-27"><span class="target" id="change-605572f4fbe5fbe913e1c270b3de66b4"><strong>[firebird] </strong></span>The functionality of result.rowcount can be disabled on a
per-engine basis by setting &#8216;enable_rowcount=False&#8217;
on create_engine().  Normally, cursor.rowcount is called
after any UPDATE or DELETE statement unconditionally,
because the cursor is then closed and Firebird requires
an open cursor in order to get a rowcount.  This
call is slightly expensive however so it can be disabled.
To re-enable on a per-execution basis, the
&#8216;enable_rowcount=True&#8217; execution option may be used.<a class="changeset-link reference internal" href="#change-605572f4fbe5fbe913e1c270b3de66b4">(link)</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.0-misc">
<h3>misc<a class="headerlink" href="#change-0.6.0-misc" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6.0-28"><span class="target" id="change-e0c034dd38e58d6263b4417bd5b20d8a"><strong>[engines] </strong></span>The C extension now also works with DBAPIs which use custom
sequences as row (and not only tuples).<a class="changeset-link reference internal" href="#change-e0c034dd38e58d6263b4417bd5b20d8a">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1757">#1757</a></p>
</p>
</li>
<li><p id="change-0.6.0-29"><span class="target" id="change-aa50f37469eba982996cc17bb2685a72"><strong>[ext] </strong></span>the compiler extension now allows &#64;compiles decorators
on base classes that extend to child classes, &#64;compiles
decorators on child classes that aren&#8217;t broken by a
&#64;compiles decorator on the base class.<a class="changeset-link reference internal" href="#change-aa50f37469eba982996cc17bb2685a72">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.0-30"><span class="target" id="change-0507e611abb0fe0ac48260501435bd99"><strong>[ext] </strong></span>Declarative will raise an informative error message
if a non-mapped class attribute is referenced in the
string-based relationship() arguments.<a class="changeset-link reference internal" href="#change-0507e611abb0fe0ac48260501435bd99">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.0-31"><span class="target" id="change-deb0113981b96ffb2348bb3031d2e553"><strong>[ext] </strong></span>Further reworked the &#8220;mixin&#8221; logic in declarative to
additionally allow __mapper_args__ as a &#64;classproperty
on a mixin, such as to dynamically assign polymorphic_identity.<a class="changeset-link reference internal" href="#change-deb0113981b96ffb2348bb3031d2e553">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6.0-32"><span class="target" id="change-cbe6875d1367b7c3a0bbeb9dddead99a"><strong>[examples] </strong></span>Updated attribute_shard.py example to use a more robust
method of searching a Query for binary expressions which
compare columns against literal values.<a class="changeset-link reference internal" href="#change-cbe6875d1367b7c3a0bbeb9dddead99a">(link)</a><p></p>
</p>
</li>
</ul>
</div>
</div>
<div class="section" id="change-0.6beta3">
<h2>0.6beta3<a class="headerlink" href="#change-0.6beta3" title="Permalink to this headline">¶</a></h2>
Released: Sun Mar 28 2010<div class="section" id="change-0.6beta3-orm">
<h3>orm<a class="headerlink" href="#change-0.6beta3-orm" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6beta3-0"><span class="target" id="change-f967d8dbf3c4194f9e0b1af4d5804fd6"><strong>[orm] </strong></span>Major feature: Added new &#8220;subquery&#8221; loading capability to
relationship().   This is an eager loading option which
generates a second SELECT for each collection represented
in a query, across all parents at once.  The query
re-issues the original end-user query wrapped in a subquery,
applies joins out to the target collection, and loads
all those collections fully in one result, similar to
&#8220;joined&#8221; eager loading but using all inner joins and not
re-fetching full parent rows repeatedly (as most DBAPIs seem
to do, even if columns are skipped).   Subquery loading is
available at mapper config level using &#8220;lazy=&#8217;subquery&#8217;&#8221; and
at the query options level using &#8220;subqueryload(props..)&#8221;,
&#8220;subqueryload_all(props...)&#8221;.<a class="changeset-link reference internal" href="#change-f967d8dbf3c4194f9e0b1af4d5804fd6">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1675">#1675</a></p>
</p>
</li>
<li><p id="change-0.6beta3-1"><span class="target" id="change-5767ddfaa66ff81d727e89c1b58f2c10"><strong>[orm] </strong></span>To accomodate the fact that there are now two kinds of eager
loading available, the new names for eagerload() and
eagerload_all() are joinedload() and joinedload_all().  The
old names will remain as synonyms for the foreseeable future.<a class="changeset-link reference internal" href="#change-5767ddfaa66ff81d727e89c1b58f2c10">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta3-2"><span class="target" id="change-5660c8fd9cb4729f0f6017950bde5b27"><strong>[orm] </strong></span>The &#8220;lazy&#8221; flag on the relationship() function now accepts
a string argument for all kinds of loading: &#8220;select&#8221;, &#8220;joined&#8221;,
&#8220;subquery&#8221;, &#8220;noload&#8221; and &#8220;dynamic&#8221;, where the default is now
&#8220;select&#8221;.  The old values of True/
False/None still retain their usual meanings and will remain
as synonyms for the foreseeable future.<a class="changeset-link reference internal" href="#change-5660c8fd9cb4729f0f6017950bde5b27">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta3-3"><span class="target" id="change-cc53079a38c2d284e5b3d878ed0120c4"><strong>[orm] </strong></span>Added with_hint() method to Query() construct.  This calls
directly down to select().with_hint() and also accepts
entities as well as tables and aliases.  See with_hint() in the
SQL section below.<a class="changeset-link reference internal" href="#change-cc53079a38c2d284e5b3d878ed0120c4">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/921">#921</a></p>
</p>
</li>
<li><p id="change-0.6beta3-4"><span class="target" id="change-3ccda2938593dbe9607247dd4ea3f042"><strong>[orm] </strong></span>Fixed bug in Query whereby calling q.join(prop).from_self(...).
join(prop) would fail to render the second join outside the
subquery, when joining on the same criterion as was on the
inside.<a class="changeset-link reference internal" href="#change-3ccda2938593dbe9607247dd4ea3f042">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta3-5"><span class="target" id="change-2546a2848e4b1fdee1a5cacf7b6e9177"><strong>[orm] </strong></span>Fixed bug in Query whereby the usage of aliased() constructs
would fail if the underlying table (but not the actual alias)
were referenced inside the subquery generated by
q.from_self() or q.select_from().<a class="changeset-link reference internal" href="#change-2546a2848e4b1fdee1a5cacf7b6e9177">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta3-6"><span class="target" id="change-69588e4d5fc29aebd7af673e5d4ec0ae"><strong>[orm] </strong></span>Fixed bug which affected all eagerload() and similar options
such that &#8220;remote&#8221; eager loads, i.e. eagerloads off of a lazy
load such as query(A).options(eagerload(A.b, B.c))
wouldn&#8217;t eagerload anything, but using eagerload(&#8220;b.c&#8221;) would
work fine.<a class="changeset-link reference internal" href="#change-69588e4d5fc29aebd7af673e5d4ec0ae">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta3-7"><span class="target" id="change-3bae9af3e07a2b3db696089c0e843fea"><strong>[orm] </strong></span>Query gains an add_columns(<a href="#id3"><span class="problematic" id="id4">*</span></a>columns) method which is a multi-
version of add_column(col).  add_column(col) is future
deprecated.<a class="changeset-link reference internal" href="#change-3bae9af3e07a2b3db696089c0e843fea">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta3-8"><span class="target" id="change-965b0258f91345cb3a06eb1191ba4dd6"><strong>[orm] </strong></span>Query.join() will detect if the end result will be
&#8220;FROM A JOIN A&#8221;, and will raise an error if so.<a class="changeset-link reference internal" href="#change-965b0258f91345cb3a06eb1191ba4dd6">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta3-9"><span class="target" id="change-33de22e92c0ea512daaf2bf928b86233"><strong>[orm] </strong></span>Query.join(Cls.propname, from_joinpoint=True) will check more
carefully that &#8220;Cls&#8221; is compatible with the current joinpoint,
and act the same way as Query.join(&#8220;propname&#8221;, from_joinpoint=True)
in that regard.<a class="changeset-link reference internal" href="#change-33de22e92c0ea512daaf2bf928b86233">(link)</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6beta3-orm-declarative">
<h3>orm declarative<a class="headerlink" href="#change-0.6beta3-orm-declarative" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6beta3-10"><span class="target" id="change-830637c55ffba2f2e096ea3c18f4f4a7"><strong>[declarative] [orm] </strong></span>Using a mixin won&#8217;t break if the mixin implements an
unpredictable __getattribute__(), i.e. Zope interfaces.<a class="changeset-link reference internal" href="#change-830637c55ffba2f2e096ea3c18f4f4a7">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1746">#1746</a></p>
</p>
</li>
<li><p id="change-0.6beta3-11"><span class="target" id="change-bd6f8eba3f3862d4d8d1011707f7b4cf"><strong>[declarative] [orm] </strong></span>Using &#64;classdecorator and similar on mixins to define
__tablename__, __table_args__, etc. now works if
the method references attributes on the ultimate
subclass.<a class="changeset-link reference internal" href="#change-bd6f8eba3f3862d4d8d1011707f7b4cf">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1749">#1749</a></p>
</p>
</li>
<li><p id="change-0.6beta3-12"><span class="target" id="change-1330f1fe92881e1fd934e9d4505add81"><strong>[declarative] [orm] </strong></span>relationships and columns with foreign keys aren&#8217;t
allowed on declarative mixins, sorry.<a class="changeset-link reference internal" href="#change-1330f1fe92881e1fd934e9d4505add81">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1751">#1751</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6beta3-sql">
<h3>sql<a class="headerlink" href="#change-0.6beta3-sql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6beta3-13"><span class="target" id="change-8921f11442b55f634ffd5da10a321a10"><strong>[sql] </strong></span>Added with_hint() method to select() construct.  Specify
a table/alias, hint text, and optional dialect name, and
&#8220;hints&#8221; will be rendered in the appropriate place in the
statement.  Works for Oracle, Sybase, MySQL.<a class="changeset-link reference internal" href="#change-8921f11442b55f634ffd5da10a321a10">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/921">#921</a></p>
</p>
</li>
<li><p id="change-0.6beta3-14"><span class="target" id="change-dbf96f0ccd57bb7e5c8878762570f98e"><strong>[sql] </strong></span>Fixed bug introduced in 0.6beta2 where column labels would
render inside of column expressions already assigned a label.<a class="changeset-link reference internal" href="#change-dbf96f0ccd57bb7e5c8878762570f98e">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1747">#1747</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6beta3-postgresql">
<h3>postgresql<a class="headerlink" href="#change-0.6beta3-postgresql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6beta3-15"><span class="target" id="change-51b8f6239dcbf5719eeda7f33fb074ad"><strong>[postgresql] </strong></span>The psycopg2 dialect will log NOTICE messages via the
&#8220;sqlalchemy.dialects.postgresql&#8221; logger name.<a class="changeset-link reference internal" href="#change-51b8f6239dcbf5719eeda7f33fb074ad">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/877">#877</a></p>
</p>
</li>
<li><p id="change-0.6beta3-16"><span class="target" id="change-cc407f1f9b807702cef6cfefc88505ae"><strong>[postgresql] </strong></span>the TIME and TIMESTAMP types are now availble from the
postgresql dialect directly, which add the PG-specific
argument &#8216;precision&#8217; to both.   &#8216;precision&#8217; and
&#8216;timezone&#8217; are correctly reflected for both TIME and
TIMEZONE types.<a class="changeset-link reference internal" href="#change-cc407f1f9b807702cef6cfefc88505ae">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/997">#997</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6beta3-mysql">
<h3>mysql<a class="headerlink" href="#change-0.6beta3-mysql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6beta3-17"><span class="target" id="change-683fd67a66959dc8c853731f14b2cc81"><strong>[mysql] </strong></span>No longer guessing that TINYINT(1) should be BOOLEAN
when reflecting - TINYINT(1) is returned.  Use Boolean/
BOOLEAN in table definition to get boolean conversion
behavior.<a class="changeset-link reference internal" href="#change-683fd67a66959dc8c853731f14b2cc81">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1752">#1752</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6beta3-oracle">
<h3>oracle<a class="headerlink" href="#change-0.6beta3-oracle" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6beta3-18"><span class="target" id="change-5c94b49a397096685020b6e1e5702ec7"><strong>[oracle] </strong></span>The Oracle dialect will issue VARCHAR type definitions
using character counts, i.e. VARCHAR2(50 CHAR), so that
the column is sized in terms of characters and not bytes.
Column reflection of character types will also use
ALL_TAB_COLUMNS.CHAR_LENGTH instead of
ALL_TAB_COLUMNS.DATA_LENGTH.  Both of these behaviors take
effect when the server version is 9 or higher - for
version 8, the old behaviors are used.<a class="changeset-link reference internal" href="#change-5c94b49a397096685020b6e1e5702ec7">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1744">#1744</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6beta3-misc">
<h3>misc<a class="headerlink" href="#change-0.6beta3-misc" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6beta3-19"><span class="target" id="change-caaf4140d3b5e7c3c34a1234538341e4"><strong>[ext] </strong></span>The sqlalchemy.orm.shard module now becomes an extension,
sqlalchemy.ext.horizontal_shard.   The old import
works with a deprecation warning.<a class="changeset-link reference internal" href="#change-caaf4140d3b5e7c3c34a1234538341e4">(link)</a><p></p>
</p>
</li>
</ul>
</div>
</div>
<div class="section" id="change-0.6beta2">
<h2>0.6beta2<a class="headerlink" href="#change-0.6beta2" title="Permalink to this headline">¶</a></h2>
Released: Sat Mar 20 2010<div class="section" id="change-0.6beta2-orm">
<h3>orm<a class="headerlink" href="#change-0.6beta2-orm" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6beta2-0"><span class="target" id="change-91f89136c1aa2ba8d36ba9cf940655b3"><strong>[orm] </strong></span>The official name for the relation() function is now
relationship(), to eliminate confusion over the relational
algebra term.  relation() however will remain available
in equal capacity for the foreseeable future.<a class="changeset-link reference internal" href="#change-91f89136c1aa2ba8d36ba9cf940655b3">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1740">#1740</a></p>
</p>
</li>
<li><p id="change-0.6beta2-1"><span class="target" id="change-9037d3b9977b0f3a6fcc6590008b9b44"><strong>[orm] </strong></span>Added &#8220;version_id_generator&#8221; argument to Mapper, this is a
callable that, given the current value of the &#8220;version_id_col&#8221;,
returns the next version number.  Can be used for alternate
versioning schemes such as uuid, timestamps.<a class="changeset-link reference internal" href="#change-9037d3b9977b0f3a6fcc6590008b9b44">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1692">#1692</a></p>
</p>
</li>
<li><p id="change-0.6beta2-2"><span class="target" id="change-ac4f20719ab810598a0f3c8590bb9e48"><strong>[orm] </strong></span>added &#8220;lockmode&#8221; kw argument to Session.refresh(), will
pass through the string value to Query the same as
in with_lockmode(), will also do version check for a
version_id_col-enabled mapping.<a class="changeset-link reference internal" href="#change-ac4f20719ab810598a0f3c8590bb9e48">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta2-3"><span class="target" id="change-2edc56abe56b8a124e046abb661dc5db"><strong>[orm] </strong></span>Fixed bug whereby calling query(A).join(A.bs).add_entity(B)
in a joined inheritance scenario would double-add B as a
target and produce an invalid query.<a class="changeset-link reference internal" href="#change-2edc56abe56b8a124e046abb661dc5db">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1188">#1188</a></p>
</p>
</li>
<li><p id="change-0.6beta2-4"><span class="target" id="change-58c0d0b1848c816ae294a332245af234"><strong>[orm] </strong></span>Fixed bug in session.rollback() which involved not removing
formerly &#8220;pending&#8221; objects from the session before
re-integrating &#8220;deleted&#8221; objects, typically occured with
natural primary keys. If there was a primary key conflict
between them, the attach of the deleted would fail
internally. The formerly &#8220;pending&#8221; objects are now expunged
first.<a class="changeset-link reference internal" href="#change-58c0d0b1848c816ae294a332245af234">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1674">#1674</a></p>
</p>
</li>
<li><p id="change-0.6beta2-5"><span class="target" id="change-1f41c5a5c9f337a6608e0d4f75069739"><strong>[orm] </strong></span>Removed a lot of logging that nobody really cares about,
logging that remains will respond to live changes in the
log level.  No significant overhead is added.<a class="changeset-link reference internal" href="#change-1f41c5a5c9f337a6608e0d4f75069739">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1719">#1719</a></p>
</p>
</li>
<li><p id="change-0.6beta2-6"><span class="target" id="change-a1907a9674f8eb93bed9c80372b1b3b1"><strong>[orm] </strong></span>Fixed bug in session.merge() which prevented dict-like
collections from merging.<a class="changeset-link reference internal" href="#change-a1907a9674f8eb93bed9c80372b1b3b1">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta2-7"><span class="target" id="change-2388f0254684db431b5a06c72016ec42"><strong>[orm] </strong></span>session.merge() works with relations that specifically
don&#8217;t include &#8220;merge&#8221; in their cascade options - the target
is ignored completely.<a class="changeset-link reference internal" href="#change-2388f0254684db431b5a06c72016ec42">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta2-8"><span class="target" id="change-c3b6834f3e3153d50e1c2975e838d44c"><strong>[orm] </strong></span>session.merge() will not expire existing scalar attributes
on an existing target if the target has a value for that
attribute, even if the incoming merged doesn&#8217;t have
a value for the attribute.  This prevents unnecessary loads
on existing items.  Will still mark the attr as expired
if the destination doesn&#8217;t have the attr, though, which
fulfills some contracts of deferred cols.<a class="changeset-link reference internal" href="#change-c3b6834f3e3153d50e1c2975e838d44c">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1681">#1681</a></p>
</p>
</li>
<li><p id="change-0.6beta2-9"><span class="target" id="change-666a289821dc312f5ae2b810b4f61a61"><strong>[orm] </strong></span>The &#8220;allow_null_pks&#8221; flag is now called &#8220;allow_partial_pks&#8221;,
defaults to True, acts like it did in 0.5 again.  Except,
it also is implemented within merge() such that a SELECT
won&#8217;t be issued for an incoming instance with partially
NULL primary key if the flag is False.<a class="changeset-link reference internal" href="#change-666a289821dc312f5ae2b810b4f61a61">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1680">#1680</a></p>
</p>
</li>
<li><p id="change-0.6beta2-10"><span class="target" id="change-340360d984e646cb2c8c8da0d5cc11b8"><strong>[orm] </strong></span>Fixed bug in 0.6-reworked &#8220;many-to-one&#8221; optimizations
such that a many-to-one that is against a non-primary key
column on the remote table (i.e. foreign key against a
UNIQUE column) will pull the &#8220;old&#8221; value in from the
database during a change, since if it&#8217;s in the session
we will need it for proper history/backref accounting,
and we can&#8217;t pull from the local identity map on a
non-primary key column.<a class="changeset-link reference internal" href="#change-340360d984e646cb2c8c8da0d5cc11b8">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1737">#1737</a></p>
</p>
</li>
<li><p id="change-0.6beta2-11"><span class="target" id="change-2848fed5c8fca096477e50f01a83b6c3"><strong>[orm] </strong></span>fixed internal error which would occur if calling has()
or similar complex expression on a single-table inheritance
relation().<a class="changeset-link reference internal" href="#change-2848fed5c8fca096477e50f01a83b6c3">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1731">#1731</a></p>
</p>
</li>
<li><p id="change-0.6beta2-12"><span class="target" id="change-5033bb4d60482fdc7e61d81f6412cea4"><strong>[orm] </strong></span>query.one() no longer applies LIMIT to the query, this to
ensure that it fully counts all object identities present
in the result, even in the case where joins may conceal
multiple identities for two or more rows.  As a bonus,
one() can now also be called with a query that issued
from_statement() to start with since it no longer modifies
the query.<a class="changeset-link reference internal" href="#change-5033bb4d60482fdc7e61d81f6412cea4">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1688">#1688</a></p>
</p>
</li>
<li><p id="change-0.6beta2-13"><span class="target" id="change-52b4d6b9d3562cdaf43788184ae1805f"><strong>[orm] </strong></span>query.get() now returns None if queried for an identifier
that is present in the identity map with a different class
than the one requested, i.e. when using polymorphic loading.<a class="changeset-link reference internal" href="#change-52b4d6b9d3562cdaf43788184ae1805f">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1727">#1727</a></p>
</p>
</li>
<li><p id="change-0.6beta2-14"><span class="target" id="change-655aaf64d072c58ce2e64a5d6dc12323"><strong>[orm] </strong></span>A major fix in query.join(), when the &#8220;on&#8221; clause is an
attribute of an aliased() construct, but there is already
an existing join made out to a compatible target, query properly
joins to the right aliased() construct instead of sticking
onto the right side of the existing join.<a class="changeset-link reference internal" href="#change-655aaf64d072c58ce2e64a5d6dc12323">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1706">#1706</a></p>
</p>
</li>
<li><p id="change-0.6beta2-15"><span class="target" id="change-fd6cb3f54f47c27d18ce7c8dd343525d"><strong>[orm] </strong></span>Slight improvement to the fix for to not issue
needless updates of the primary key column during a so-called
&#8220;row switch&#8221; operation, i.e. add + delete of two objects
with the same PK.<a class="changeset-link reference internal" href="#change-fd6cb3f54f47c27d18ce7c8dd343525d">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1362">#1362</a></p>
</p>
</li>
<li><p id="change-0.6beta2-16"><span class="target" id="change-149e924d04484755c0a14ec239f22076"><strong>[orm] </strong></span>Now uses sqlalchemy.orm.exc.DetachedInstanceError when an
attribute load or refresh action fails due to object
being detached from any Session.   UnboundExecutionError
is specific to engines bound to sessions and statements.<a class="changeset-link reference internal" href="#change-149e924d04484755c0a14ec239f22076">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta2-17"><span class="target" id="change-7312d2f689d678c6e4d0799defdb8511"><strong>[orm] </strong></span>Query called in the context of an expression will render
disambiguating labels in all cases.    Note that this does
not apply to the existing .statement and .subquery()
accessor/method, which still honors the .with_labels()
setting that defaults to False.<a class="changeset-link reference internal" href="#change-7312d2f689d678c6e4d0799defdb8511">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta2-18"><span class="target" id="change-69ee650c673044a6587e8f1a25fd2e9b"><strong>[orm] </strong></span>Query.union() retains disambiguating labels within the
returned statement, thus avoiding various SQL composition
errors which can result from column name conflicts.<a class="changeset-link reference internal" href="#change-69ee650c673044a6587e8f1a25fd2e9b">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1676">#1676</a></p>
</p>
</li>
<li><p id="change-0.6beta2-19"><span class="target" id="change-9366c0432f49557b000d6930b7f2b0c8"><strong>[orm] </strong></span>Fixed bug in attribute history that inadvertently invoked
__eq__ on mapped instances.<a class="changeset-link reference internal" href="#change-9366c0432f49557b000d6930b7f2b0c8">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta2-20"><span class="target" id="change-9b042559ccc515464dca31a9da9e25d6"><strong>[orm] </strong></span>Some internal streamlining of object loading grants a
small speedup for large results, estimates are around
10-15%.   Gave the &#8220;state&#8221; internals a good solid
cleanup with less complexity, datamembers,
method calls, blank dictionary creates.<a class="changeset-link reference internal" href="#change-9b042559ccc515464dca31a9da9e25d6">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta2-21"><span class="target" id="change-99a73658e5e4c367df4688c45bbda9aa"><strong>[orm] </strong></span>Documentation clarification for query.delete()<a class="changeset-link reference internal" href="#change-99a73658e5e4c367df4688c45bbda9aa">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1689">#1689</a></p>
</p>
</li>
<li><p id="change-0.6beta2-22"><span class="target" id="change-3b02e92cb9ea00b598b21503acc970d0"><strong>[orm] </strong></span>Fixed cascade bug in many-to-one relation() when attribute
was set to None, introduced in r6711 (cascade deleted
items into session during add()).<a class="changeset-link reference internal" href="#change-3b02e92cb9ea00b598b21503acc970d0">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta2-23"><span class="target" id="change-931a758f3fb2e353bb842566bd92c153"><strong>[orm] </strong></span>Calling query.order_by() or query.distinct() before calling
query.select_from(), query.with_polymorphic(), or
query.from_statement() raises an exception now instead of
silently dropping those criterion.<a class="changeset-link reference internal" href="#change-931a758f3fb2e353bb842566bd92c153">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1736">#1736</a></p>
</p>
</li>
<li><p id="change-0.6beta2-24"><span class="target" id="change-c2ae6c50721c4f5bc949b93ea8f29055"><strong>[orm] </strong></span>query.scalar() now raises an exception if more than one
row is returned.  All other behavior remains the same.<a class="changeset-link reference internal" href="#change-c2ae6c50721c4f5bc949b93ea8f29055">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1735">#1735</a></p>
</p>
</li>
<li><p id="change-0.6beta2-25"><span class="target" id="change-714ce6498d2c194488bf5337d8787134"><strong>[orm] </strong></span>Fixed bug which caused &#8220;row switch&#8221; logic, that is an
INSERT and DELETE replaced by an UPDATE, to fail when
version_id_col was in use.<a class="changeset-link reference internal" href="#change-714ce6498d2c194488bf5337d8787134">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1692">#1692</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6beta2-orm-declarative">
<h3>orm declarative<a class="headerlink" href="#change-0.6beta2-orm-declarative" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6beta2-26"><span class="target" id="change-f03d84f79ae875801309e3cf1d11c2c6"><strong>[declarative] [orm] </strong></span>DeclarativeMeta exclusively uses cls.__dict__ (not <a href="#id17"><span class="problematic" id="id18">dict_</span></a>)
as the source of class information; _as_declarative exclusively
uses the  <a href="#id19"><span class="problematic" id="id20">dict_</span></a> passed to it as the source of class information
(which when using DeclarativeMeta is cls.__dict__).  This should
in theory make it easier for custom metaclasses to modify
the state passed into _as_declarative.<a class="changeset-link reference internal" href="#change-f03d84f79ae875801309e3cf1d11c2c6">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta2-27"><span class="target" id="change-a6fb16c5b4efc1b1336ae57e0611eb05"><strong>[declarative] [orm] </strong></span>declarative now accepts mixin classes directly, as a means
to provide common functional and column-based elements on
all subclasses, as well as a means to propagate a fixed
set of __table_args__ or __mapper_args__ to subclasses.
For custom combinations of __table_args__/__mapper_args__ from
an inherited mixin to local, descriptors can now be used.
New details are all up in the Declarative documentation.
Thanks to Chris Withers for putting up with my strife
on this.<a class="changeset-link reference internal" href="#change-a6fb16c5b4efc1b1336ae57e0611eb05">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1707">#1707</a></p>
</p>
</li>
<li><p id="change-0.6beta2-28"><span class="target" id="change-712b74c929fe77fb05e228b508010508"><strong>[declarative] [orm] </strong></span>the __mapper_args__ dict is copied when propagating to a subclass,
and is taken straight off the class __dict__ to avoid any
propagation from the parent.  mapper inheritance already
propagates the things you want from the parent mapper.<a class="changeset-link reference internal" href="#change-712b74c929fe77fb05e228b508010508">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1393">#1393</a></p>
</p>
</li>
<li><p id="change-0.6beta2-29"><span class="target" id="change-cdbe265dab1874af885c1b8130cb2eee"><strong>[declarative] [orm] </strong></span>An exception is raised when a single-table subclass specifies
a column that is already present on the base class.<a class="changeset-link reference internal" href="#change-cdbe265dab1874af885c1b8130cb2eee">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1732">#1732</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6beta2-sql">
<h3>sql<a class="headerlink" href="#change-0.6beta2-sql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6beta2-30"><span class="target" id="change-b53712fca734ff4d0164b00e61f53cf1"><strong>[sql] </strong></span>join() will now simulate a NATURAL JOIN by default.  Meaning,
if the left side is a join, it will attempt to join the right
side to the rightmost side of the left first, and not raise
any exceptions about ambiguous join conditions if successful
even if there are further join targets across the rest of
the left.<a class="changeset-link reference internal" href="#change-b53712fca734ff4d0164b00e61f53cf1">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1714">#1714</a></p>
</p>
</li>
<li><p id="change-0.6beta2-31"><span class="target" id="change-e6678947026dc69d573ba7f06fa6dcc0"><strong>[sql] </strong></span>The most common result processors conversion function were
moved to the new &#8220;processors&#8221; module.  Dialect authors are
encouraged to use those functions whenever they correspond
to their needs instead of implementing custom ones.<a class="changeset-link reference internal" href="#change-e6678947026dc69d573ba7f06fa6dcc0">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta2-32"><span class="target" id="change-787fd3a6677f8ba4f979ea8f6fb383fd"><strong>[sql] </strong></span>SchemaType and subclasses Boolean, Enum are now serializable,
including their ddl listener and other event callables.<a class="changeset-link reference internal" href="#change-787fd3a6677f8ba4f979ea8f6fb383fd">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1694">#1694</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1698">#1698</a></p>
</p>
</li>
<li><p id="change-0.6beta2-33"><span class="target" id="change-b8980f5d17caec1e2e5b563b1e15b8b2"><strong>[sql] </strong></span>Some platforms will now interpret certain literal values
as non-bind parameters, rendered literally into the SQL
statement.   This to support strict SQL-92 rules that are
enforced by some platforms including MS-SQL and Sybase.
In this model, bind parameters aren&#8217;t allowed in the
columns clause of a SELECT, nor are certain ambiguous
expressions like &#8221;?=?&#8221;.  When this mode is enabled, the base
compiler will render the binds as inline literals, but only across
strings and numeric values.  Other types such as dates
will raise an error, unless the dialect subclass defines
a literal rendering function for those.  The bind parameter
must have an embedded literal value already or an error
is raised (i.e. won&#8217;t work with straight bindparam(&#8216;x&#8217;)).
Dialects can also expand upon the areas where binds are not
accepted, such as within argument lists of functions
(which don&#8217;t work on MS-SQL when native SQL binding is used).<a class="changeset-link reference internal" href="#change-b8980f5d17caec1e2e5b563b1e15b8b2">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta2-34"><span class="target" id="change-4add0a3ae9513d98fa991274564b4e51"><strong>[sql] </strong></span>Added &#8220;unicode_errors&#8221; parameter to String, Unicode, etc.
Behaves like the &#8216;errors&#8217; keyword argument to
the standard library&#8217;s string.decode() functions.   This flag
requires that <cite>convert_unicode</cite> is set to <cite>&#8220;force&#8221;</cite> - otherwise,
SQLAlchemy is not guaranteed to handle the task of unicode
conversion.   Note that this flag adds significant performance
overhead to row-fetching operations for backends that already
return unicode objects natively (which most DBAPIs do).  This
flag should only be used as an absolute last resort for reading
strings from a column with varied or corrupted encodings,
which only applies to databases that accept invalid encodings
in the first place (i.e. MySQL. <em>not</em> PG, Sqlite, etc.)<a class="changeset-link reference internal" href="#change-4add0a3ae9513d98fa991274564b4e51">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta2-35"><span class="target" id="change-fd8105345e50a3b6986674cfa2db831c"><strong>[sql] </strong></span>Added math negation operator support, -x.<a class="changeset-link reference internal" href="#change-fd8105345e50a3b6986674cfa2db831c">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta2-36"><span class="target" id="change-375720ffaaf3679f497e76385994a25c"><strong>[sql] </strong></span>FunctionElement subclasses are now directly executable the
same way any func.foo() construct is, with automatic
SELECT being applied when passed to execute().<a class="changeset-link reference internal" href="#change-375720ffaaf3679f497e76385994a25c">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta2-37"><span class="target" id="change-a8e7f19cf6b70ec1d6540a17f847c531"><strong>[sql] </strong></span>The &#8220;type&#8221; and &#8220;bind&#8221; keyword arguments of a func.foo()
construct are now local to &#8220;func.&#8221; constructs and are
not part of the FunctionElement base class, allowing
a &#8220;type&#8221; to be handled in a custom constructor or
class-level variable.<a class="changeset-link reference internal" href="#change-a8e7f19cf6b70ec1d6540a17f847c531">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta2-38"><span class="target" id="change-4e51f442ae41f22cc4bff3527f97bf33"><strong>[sql] </strong></span>Restored the keys() method to ResultProxy.<a class="changeset-link reference internal" href="#change-4e51f442ae41f22cc4bff3527f97bf33">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta2-39"><span class="target" id="change-543013779b4c9e5cad66c4531f5053e0"><strong>[sql] </strong></span>The type/expression system now does a more complete job
of determining the return type from an expression
as well as the adaptation of the Python operator into
a SQL operator, based on the full left/right/operator
of the given expression.  In particular
the date/time/interval system created for Postgresql
EXTRACT in has now been generalized into
the type system.   The previous behavior which often
occured of an expression &#8220;column + literal&#8221; forcing
the type of &#8220;literal&#8221; to be the same as that of &#8220;column&#8221;
will now usually not occur - the type of
&#8220;literal&#8221; is first derived from the Python type of the
literal, assuming standard native Python types + date
types, before falling back to that of the known type
on the other side of the expression.  If the
&#8220;fallback&#8221; type is compatible (i.e. CHAR from String),
the literal side will use that.  TypeDecorator
types override this by default to coerce the &#8220;literal&#8221;
side unconditionally, which can be changed by implementing
the coerce_compared_value() method. Also part of.<a class="changeset-link reference internal" href="#change-543013779b4c9e5cad66c4531f5053e0">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1647">#1647</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1683">#1683</a></p>
</p>
</li>
<li><p id="change-0.6beta2-40"><span class="target" id="change-4b04f7b3b18249863369ddef13e98ada"><strong>[sql] </strong></span>Made sqlalchemy.sql.expressions.Executable part of public
API, used for any expression construct that can be sent to
execute().  FunctionElement now inherits Executable so that
it gains execution_options(), which are also propagated
to the select() that&#8217;s generated within execute().
Executable in turn subclasses _Generative which marks
any ClauseElement that supports the &#64;_generative
decorator - these may also become &#8220;public&#8221; for the benefit
of the compiler extension at some point.<a class="changeset-link reference internal" href="#change-4b04f7b3b18249863369ddef13e98ada">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta2-41"><span class="target" id="change-e18872438ff47328adbe402a50ef19b8"><strong>[sql] </strong></span>A change to the solution for - an end-user
defined bind parameter name that directly conflicts with
a column-named bind generated directly from the SET or
VALUES clause of an update/insert generates a compile error.
This reduces call counts and eliminates some cases where
undesirable name conflicts could still occur.<a class="changeset-link reference internal" href="#change-e18872438ff47328adbe402a50ef19b8">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1579">#1579</a></p>
</p>
</li>
<li><p id="change-0.6beta2-42"><span class="target" id="change-25e52b132f46c6da5df9e4d2d1b3629e"><strong>[sql] </strong></span>Column() requires a type if it has no foreign keys (this is
not new).  An error is now raised if a Column() has no type
and no foreign keys.<a class="changeset-link reference internal" href="#change-25e52b132f46c6da5df9e4d2d1b3629e">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1705">#1705</a></p>
</p>
</li>
<li><p id="change-0.6beta2-43"><span class="target" id="change-1bd09db2f45aebf370068907a549222d"><strong>[sql] </strong></span>the &#8220;scale&#8221; argument of the Numeric() type is honored when
coercing a returned floating point value into a string
on its way to Decimal - this allows accuracy to function
on SQLite, MySQL.<a class="changeset-link reference internal" href="#change-1bd09db2f45aebf370068907a549222d">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1717">#1717</a></p>
</p>
</li>
<li><p id="change-0.6beta2-44"><span class="target" id="change-d1540ed7293cf73f522c47764b34b8db"><strong>[sql] </strong></span>the copy() method of Column now copies over uninitialized
&#8220;on table attach&#8221; events.  Helps with the new declarative
&#8220;mixin&#8221; capability.<a class="changeset-link reference internal" href="#change-d1540ed7293cf73f522c47764b34b8db">(link)</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6beta2-mysql">
<h3>mysql<a class="headerlink" href="#change-0.6beta2-mysql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6beta2-45"><span class="target" id="change-a35014255c51338d324794124dabec73"><strong>[mysql] </strong></span>Fixed reflection bug whereby when COLLATE was present,
nullable flag and server defaults would not be reflected.<a class="changeset-link reference internal" href="#change-a35014255c51338d324794124dabec73">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1655">#1655</a></p>
</p>
</li>
<li><p id="change-0.6beta2-46"><span class="target" id="change-0a377528b158add95b51614355824b86"><strong>[mysql] </strong></span>Fixed reflection of TINYINT(1) &#8220;boolean&#8221; columns defined with
integer flags like UNSIGNED.<a class="changeset-link reference internal" href="#change-0a377528b158add95b51614355824b86">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta2-47"><span class="target" id="change-c4476c66267aa9d53e5d3104352f2460"><strong>[mysql] </strong></span>Further fixes for the mysql-connector dialect.<a class="changeset-link reference internal" href="#change-c4476c66267aa9d53e5d3104352f2460">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1668">#1668</a></p>
</p>
</li>
<li><p id="change-0.6beta2-48"><span class="target" id="change-e5eef98bf3b744b814f45de869fa2400"><strong>[mysql] </strong></span>Composite PK table on InnoDB where the &#8220;autoincrement&#8221; column
isn&#8217;t first will emit an explicit &#8220;KEY&#8221; phrase within
CREATE TABLE thereby avoiding errors.<a class="changeset-link reference internal" href="#change-e5eef98bf3b744b814f45de869fa2400">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1496">#1496</a></p>
</p>
</li>
<li><p id="change-0.6beta2-49"><span class="target" id="change-eabba2ee40f19b4f83f4b62f38ac3b3e"><strong>[mysql] </strong></span>Added reflection/create table support for a wide range
of MySQL keywords.<a class="changeset-link reference internal" href="#change-eabba2ee40f19b4f83f4b62f38ac3b3e">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1634">#1634</a></p>
</p>
</li>
<li><p id="change-0.6beta2-50"><span class="target" id="change-a4024dfc8c4693eea7c02add1a5b72f4"><strong>[mysql] </strong></span>Fixed import error which could occur reflecting tables on
a Windows host<a class="changeset-link reference internal" href="#change-a4024dfc8c4693eea7c02add1a5b72f4">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1580">#1580</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6beta2-sqlite">
<h3>sqlite<a class="headerlink" href="#change-0.6beta2-sqlite" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6beta2-51"><span class="target" id="change-686860a49e344194295bd7ddef459b1a"><strong>[sqlite] </strong></span>Added &#8220;native_datetime=True&#8221; flag to create_engine().
This will cause the DATE and TIMESTAMP types to skip
all bind parameter and result row processing, under
the assumption that PARSE_DECLTYPES has been enabled
on the connection.  Note that this is not entirely
compatible with the &#8220;func.current_date()&#8221;, which
will be returned as a string.<a class="changeset-link reference internal" href="#change-686860a49e344194295bd7ddef459b1a">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1685">#1685</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6beta2-mssql">
<h3>mssql<a class="headerlink" href="#change-0.6beta2-mssql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6beta2-52"><span class="target" id="change-c43171d5ad2afdb8be0210f4345e7c3b"><strong>[mssql] </strong></span>Re-established support for the pymssql dialect.<a class="changeset-link reference internal" href="#change-c43171d5ad2afdb8be0210f4345e7c3b">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta2-53"><span class="target" id="change-afec227c9a875855720b6369b4193326"><strong>[mssql] </strong></span>Various fixes for implicit returning, reflection,
etc. - the MS-SQL dialects aren&#8217;t quite complete
in 0.6 yet (but are close)<a class="changeset-link reference internal" href="#change-afec227c9a875855720b6369b4193326">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta2-54"><span class="target" id="change-0541548f6903480b3a322de8c54929ce"><strong>[mssql] </strong></span>Added basic support for mxODBC.<a class="changeset-link reference internal" href="#change-0541548f6903480b3a322de8c54929ce">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1710">#1710</a></p>
</p>
</li>
<li><p id="change-0.6beta2-55"><span class="target" id="change-dba80448eeea205b1bbaec327ac1de55"><strong>[mssql] </strong></span>Removed the text_as_varchar option.<a class="changeset-link reference internal" href="#change-dba80448eeea205b1bbaec327ac1de55">(link)</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6beta2-oracle">
<h3>oracle<a class="headerlink" href="#change-0.6beta2-oracle" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6beta2-56"><span class="target" id="change-f2a132a1d5c7974e390d588eac834b3b"><strong>[oracle] </strong></span>&#8220;out&#8221; parameters require a type that is supported by
cx_oracle.  An error will be raised if no cx_oracle
type can be found.<a class="changeset-link reference internal" href="#change-f2a132a1d5c7974e390d588eac834b3b">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta2-57"><span class="target" id="change-ab6e812d286cec34322fb6829527927b"><strong>[oracle] </strong></span>Oracle &#8216;DATE&#8217; now does not perform any result processing,
as the DATE type in Oracle stores full date+time objects,
that&#8217;s what you&#8217;ll get.  Note that the generic types.Date
type <em>will</em> still call value.date() on incoming values,
however.  When reflecting a table, the reflected type
will be &#8216;DATE&#8217;.<a class="changeset-link reference internal" href="#change-ab6e812d286cec34322fb6829527927b">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta2-58"><span class="target" id="change-62c558744df2f44f9cb4bf1ff987ce86"><strong>[oracle] </strong></span>Added preliminary support for Oracle&#8217;s WITH_UNICODE
mode.  At the very least this establishes initial
support for cx_Oracle with Python 3.  When WITH_UNICODE
mode is used in Python 2.xx, a large and scary warning
is emitted asking that the user seriously consider
the usage of this difficult mode of operation.<a class="changeset-link reference internal" href="#change-62c558744df2f44f9cb4bf1ff987ce86">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1670">#1670</a></p>
</p>
</li>
<li><p id="change-0.6beta2-59"><span class="target" id="change-774d1f88602325ba20cca6ce5c10734b"><strong>[oracle] </strong></span>The except_() method now renders as MINUS on Oracle,
which is more or less equivalent on that platform.<a class="changeset-link reference internal" href="#change-774d1f88602325ba20cca6ce5c10734b">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1712">#1712</a></p>
</p>
</li>
<li><p id="change-0.6beta2-60"><span class="target" id="change-0e995c38104f4a4175d2a741f88b12bc"><strong>[oracle] </strong></span>Added support for rendering and reflecting
TIMESTAMP WITH TIME ZONE, i.e. TIMESTAMP(timezone=True).<a class="changeset-link reference internal" href="#change-0e995c38104f4a4175d2a741f88b12bc">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/651">#651</a></p>
</p>
</li>
<li><p id="change-0.6beta2-61"><span class="target" id="change-21af7340803f01c63bb39084313092b9"><strong>[oracle] </strong></span>Oracle INTERVAL type can now be reflected.<a class="changeset-link reference internal" href="#change-21af7340803f01c63bb39084313092b9">(link)</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6beta2-misc">
<h3>misc<a class="headerlink" href="#change-0.6beta2-misc" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6beta2-62"><span class="target" id="change-30f2fc874b9df7b7d141eef33c5d2468"><strong>[py3k] </strong></span>Improved the installation/test setup regarding Python 3,
now that Distribute runs on Py3k.   distribute_setup.py
is now included.  See README.py3k for Python 3 installation/
testing instructions.<a class="changeset-link reference internal" href="#change-30f2fc874b9df7b7d141eef33c5d2468">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta2-63"><span class="target" id="change-cdd5ac4118fc526b3b6e424254f9f575"><strong>[engines] </strong></span>Added an optional C extension to speed up the sql layer by
reimplementing RowProxy and the most common result processors.
The actual speedups will depend heavily on your DBAPI and
the mix of datatypes used in your tables, and can vary from
a 30% improvement to more than 200%.  It also provides a modest
(~15-20%) indirect improvement to ORM speed for large queries.
Note that it is <em>not</em> built/installed by default.
See README for installation instructions.<a class="changeset-link reference internal" href="#change-cdd5ac4118fc526b3b6e424254f9f575">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta2-64"><span class="target" id="change-582f4dfd426b3da60af448476c0d9049"><strong>[engines] </strong></span>the execution sequence pulls all rowcount/last inserted ID
info from the cursor before commit() is called on the
DBAPI connection in an &#8220;autocommit&#8221; scenario.  This helps
mxodbc with rowcount and is probably a good idea overall.<a class="changeset-link reference internal" href="#change-582f4dfd426b3da60af448476c0d9049">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta2-65"><span class="target" id="change-8339a8f6f9f054e9871057ff44eb310b"><strong>[engines] </strong></span>Opened up logging a bit such that isEnabledFor() is called
more often, so that changes to the log level for engine/pool
will be reflected on next connect.   This adds a small
amount of method call overhead.  It&#8217;s negligible and will make
life a lot easier for all those situations when logging
just happens to be configured after create_engine() is called.<a class="changeset-link reference internal" href="#change-8339a8f6f9f054e9871057ff44eb310b">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1719">#1719</a></p>
</p>
</li>
<li><p id="change-0.6beta2-66"><span class="target" id="change-44b744d4299fe9fd0c15e0b51548c21c"><strong>[engines] </strong></span>The assert_unicode flag is deprecated.  SQLAlchemy will raise
a warning in all cases where it is asked to encode a non-unicode
Python string, as well as when a Unicode or UnicodeType type
is explicitly passed a bytestring.  The String type will do nothing
for DBAPIs that already accept Python unicode objects.<a class="changeset-link reference internal" href="#change-44b744d4299fe9fd0c15e0b51548c21c">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta2-67"><span class="target" id="change-e486cdddb6da9fcd5b78a7e384f517e3"><strong>[engines] </strong></span>Bind parameters are sent as a tuple instead of a list. Some
backend drivers will not accept bind parameters as a list.<a class="changeset-link reference internal" href="#change-e486cdddb6da9fcd5b78a7e384f517e3">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta2-68"><span class="target" id="change-31babb385ad99c9c8dfef800a188b08f"><strong>[engines] </strong></span>threadlocal engine wasn&#8217;t properly closing the connection
upon close() - fixed that.<a class="changeset-link reference internal" href="#change-31babb385ad99c9c8dfef800a188b08f">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta2-69"><span class="target" id="change-6a84cce20a490a05b2ae3aa704d0b11f"><strong>[engines] </strong></span>Transaction object doesn&#8217;t rollback or commit if it isn&#8217;t
&#8220;active&#8221;, allows more accurate nesting of begin/rollback/commit.<a class="changeset-link reference internal" href="#change-6a84cce20a490a05b2ae3aa704d0b11f">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta2-70"><span class="target" id="change-2e55f14274c2191236e3104fac4e24de"><strong>[engines] </strong></span>Python unicode objects as binds result in the Unicode type,
not string, thus eliminating a certain class of unicode errors
on drivers that don&#8217;t support unicode binds.<a class="changeset-link reference internal" href="#change-2e55f14274c2191236e3104fac4e24de">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta2-71"><span class="target" id="change-2a0cef92888b2be98785ecc9a097653c"><strong>[engines] </strong></span>Added &#8220;logging_name&#8221; argument to create_engine(), Pool() constructor
as well as &#8220;pool_logging_name&#8221; argument to create_engine() which
filters down to that of Pool.   Issues the given string name
within the &#8220;name&#8221; field of logging messages instead of the default
hex identifier string.<a class="changeset-link reference internal" href="#change-2a0cef92888b2be98785ecc9a097653c">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1555">#1555</a></p>
</p>
</li>
<li><p id="change-0.6beta2-72"><span class="target" id="change-81eacba0128286c062f03c539e3fb32a"><strong>[engines] </strong></span>The visit_pool() method of Dialect is removed, and replaced with
on_connect().  This method returns a callable which receives
the raw DBAPI connection after each one is created.   The callable
is assembled into a first_connect/connect pool listener by the
connection strategy if non-None.   Provides a simpler interface
for dialects.<a class="changeset-link reference internal" href="#change-81eacba0128286c062f03c539e3fb32a">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta2-73"><span class="target" id="change-6fb3ebb61d325e02bee2444d540be282"><strong>[engines] </strong></span>StaticPool now initializes, disposes and recreates without
opening a new connection - the connection is only opened when
first requested. dispose() also works on AssertionPool now.<a class="changeset-link reference internal" href="#change-6fb3ebb61d325e02bee2444d540be282">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1728">#1728</a></p>
</p>
</li>
<li><p id="change-0.6beta2-74"><span class="target" id="change-19e2f337ca9a7555b3e2cd9f34026221"><strong>[ticket: 1673] [metadata] </strong></span>Added the ability to strip schema information when using
&#8220;tometadata&#8221; by passing &#8220;schema=None&#8221; as an argument. If schema
is not specified then the table&#8217;s schema is retained.<a class="changeset-link reference internal" href="#change-19e2f337ca9a7555b3e2cd9f34026221">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta2-75"><span class="target" id="change-59b20e0d794888b5924ddb106a96ce97"><strong>[sybase] </strong></span>Implemented a preliminary working dialect for Sybase,
with sub-implementations for Python-Sybase as well
as Pyodbc.  Handles table
creates/drops and basic round trip functionality.
Does not yet include reflection or comprehensive
support of unicode/special expressions/etc.<a class="changeset-link reference internal" href="#change-59b20e0d794888b5924ddb106a96ce97">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta2-76"><span class="target" id="change-2fba82fbacb3e70a6a774aa1e8e81f74"><strong>[examples] </strong></span>Changed the beaker cache example a bit to have a separate
RelationCache option for lazyload caching.  This object
does a lookup among any number of potential attributes
more efficiently by grouping several into a common structure.
Both FromCache and RelationCache are simpler individually.<a class="changeset-link reference internal" href="#change-2fba82fbacb3e70a6a774aa1e8e81f74">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta2-77"><span class="target" id="change-e7846468739660d7e6ad96f9435b4871"><strong>[documentation] </strong></span>Major cleanup work in the docs to link class, function, and
method names into the API docs.<a class="changeset-link reference internal" href="#change-e7846468739660d7e6ad96f9435b4871">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1700">#1700</a></p>
</p>
</li>
</ul>
</div>
</div>
<div class="section" id="change-0.6beta1">
<h2>0.6beta1<a class="headerlink" href="#change-0.6beta1" title="Permalink to this headline">¶</a></h2>
Released: Wed Feb 03 2010<div class="section" id="change-0.6beta1-orm">
<h3>orm<a class="headerlink" href="#change-0.6beta1-orm" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6beta1-0"><span class="target" id="change-dc6ff9eba416b02d740a8dd8fcf216cb"><strong>[orm] </strong></span><dl class="docutils">
<dt>Changes to query.update() and query.delete():</dt>
<dd><ul class="first last">
<li>the &#8216;expire&#8217; option on query.update() has been renamed to
&#8216;fetch&#8217;, thus matching that of query.delete().
&#8216;expire&#8217; is deprecated and issues a warning.</li>
<li>query.update() and query.delete() both default to
&#8216;evaluate&#8217; for the synchronize strategy.</li>
<li>the &#8216;synchronize&#8217; strategy for update() and delete()
raises an error on failure. There is no implicit fallback
onto &#8220;fetch&#8221;. Failure of evaluation is based on the
structure of criteria, so success/failure is deterministic
based on code structure.</li>
</ul>
</dd>
</dl>
<a class="changeset-link reference internal" href="#change-dc6ff9eba416b02d740a8dd8fcf216cb">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-1"><span class="target" id="change-b0f39f3d2c314fb24db07687b5d6ce5c"><strong>[orm] </strong></span><dl class="docutils">
<dt>Enhancements on many-to-one relations:</dt>
<dd><ul class="first last">
<li>many-to-one relations now fire off a lazyload in fewer
cases, including in most cases will not fetch the &#8220;old&#8221;
value when a new one is replaced.</li>
<li>many-to-one relation to a joined-table subclass now uses
get() for a simple load (known as the &#8220;use_get&#8221;
condition), i.e. Related-&gt;Sub(Base), without the need to
redefine the primaryjoin condition in terms of the base
table.</li>
<li>specifying a foreign key with a declarative column, i.e.
ForeignKey(MyRelatedClass.id) doesn&#8217;t break the &#8220;use_get&#8221;
condition from taking place</li>
<li>relation(), eagerload(), and eagerload_all() now feature
an option called &#8220;innerjoin&#8221;. Specify <cite>True</cite> or <cite>False</cite> to
control whether an eager join is constructed as an INNER
or OUTER join. Default is <cite>False</cite> as always. The mapper
options will override whichever setting is specified on
relation(). Should generally be set for many-to-one, not
nullable foreign key relations to allow improved join
performance.</li>
<li>the behavior of eagerloading such that the main query is
wrapped in a subquery when LIMIT/OFFSET are present now
makes an exception for the case when all eager loads are
many-to-one joins. In those cases, the eager joins are
against the parent table directly along with the
limit/offset without the extra overhead of a subquery,
since a many-to-one join does not add rows to the result.</li>
</ul>
</dd>
</dl>
<a class="changeset-link reference internal" href="#change-b0f39f3d2c314fb24db07687b5d6ce5c">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1186">#1186</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1492">#1492</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1544">#1544</a></p>
</p>
</li>
<li><p id="change-0.6beta1-2"><span class="target" id="change-214672957cd89d4ecddac4104c865548"><strong>[orm] </strong></span>Enhancements / Changes on Session.merge():<a class="changeset-link reference internal" href="#change-214672957cd89d4ecddac4104c865548">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-3"><span class="target" id="change-2ec8e6a30ef412d4ca9f79d541de4fd2"><strong>[orm] </strong></span>the &#8220;dont_load=True&#8221; flag on Session.merge() is deprecated
and is now &#8220;load=False&#8221;.<a class="changeset-link reference internal" href="#change-2ec8e6a30ef412d4ca9f79d541de4fd2">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-4"><span class="target" id="change-54940eafb98ef2da97a3d986ce185a1a"><strong>[orm] </strong></span>Session.merge() is performance optimized, using half the
call counts for &#8220;load=False&#8221; mode compared to 0.5 and
significantly fewer SQL queries in the case of collections
for &#8220;load=True&#8221; mode.<a class="changeset-link reference internal" href="#change-54940eafb98ef2da97a3d986ce185a1a">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-5"><span class="target" id="change-2bed1f32297bbc130f45b4d30b89c291"><strong>[orm] </strong></span>merge() will not issue a needless merge of attributes if the
given instance is the same instance which is already present.<a class="changeset-link reference internal" href="#change-2bed1f32297bbc130f45b4d30b89c291">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-6"><span class="target" id="change-2bbbf3e1665069128942de0c7eef6060"><strong>[orm] </strong></span>merge() now also merges the &#8220;options&#8221; associated with a given
state, i.e. those passed through query.options() which follow
along with an instance, such as options to eagerly- or
lazyily- load various attributes.   This is essential for
the construction of highly integrated caching schemes.  This
is a subtle behavioral change vs. 0.5.<a class="changeset-link reference internal" href="#change-2bbbf3e1665069128942de0c7eef6060">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-7"><span class="target" id="change-2a96bff0a75bb240bdfc1fd98a705c7b"><strong>[orm] </strong></span>A bug was fixed regarding the serialization of the &#8220;loader
path&#8221; present on an instance&#8217;s state, which is also necessary
when combining the usage of merge() with serialized state
and associated options that should be preserved.<a class="changeset-link reference internal" href="#change-2a96bff0a75bb240bdfc1fd98a705c7b">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-8"><span class="target" id="change-023079a39b7b68c5ea1d0a6ae57374d8"><strong>[orm] </strong></span>The all new merge() is showcased in a new comprehensive
example of how to integrate Beaker with SQLAlchemy.  See
the notes in the &#8220;examples&#8221; note below.<a class="changeset-link reference internal" href="#change-023079a39b7b68c5ea1d0a6ae57374d8">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-9"><span class="target" id="change-d92b5ce0bd2745798d570f1d7a477427"><strong>[orm] </strong></span>Primary key values can now be changed on a joined-table inheritance
object, and ON UPDATE CASCADE will be taken into account when
the flush happens.  Set the new &#8220;passive_updates&#8221; flag to False
on mapper() when using SQLite or MySQL/MyISAM.<a class="changeset-link reference internal" href="#change-d92b5ce0bd2745798d570f1d7a477427">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1362">#1362</a></p>
</p>
</li>
<li><p id="change-0.6beta1-10"><span class="target" id="change-acdcc601f3f43f3d50ffd4a7eccab5ee"><strong>[orm] </strong></span>flush() now detects when a primary key column was updated by
an ON UPDATE CASCADE operation from another primary key, and
can then locate the row for a subsequent UPDATE on the new PK
value.  This occurs when a relation() is there to establish
the relationship as well as passive_updates=True.<a class="changeset-link reference internal" href="#change-acdcc601f3f43f3d50ffd4a7eccab5ee">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1671">#1671</a></p>
</p>
</li>
<li><p id="change-0.6beta1-11"><span class="target" id="change-7885463e500d075f4f8777f53615642f"><strong>[orm] </strong></span>the &#8220;save-update&#8221; cascade will now cascade the pending <em>removed</em>
values from a scalar or collection attribute into the new session
during an add() operation.  This so that the flush() operation
will also delete or modify rows of those disconnected items.<a class="changeset-link reference internal" href="#change-7885463e500d075f4f8777f53615642f">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-12"><span class="target" id="change-77148312513d999f0abe3daa49304c4d"><strong>[orm] </strong></span>Using a &#8220;dynamic&#8221; loader with a &#8220;secondary&#8221; table now produces
a query where the &#8220;secondary&#8221; table is <em>not</em> aliased.  This
allows the secondary Table object to be used in the &#8220;order_by&#8221;
attribute of the relation(), and also allows it to be used
in filter criterion against the dynamic relation.<a class="changeset-link reference internal" href="#change-77148312513d999f0abe3daa49304c4d">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1531">#1531</a></p>
</p>
</li>
<li><p id="change-0.6beta1-13"><span class="target" id="change-5e3ba4eff181a0ee2c6a2fae40497392"><strong>[orm] </strong></span>relation() with uselist=False will emit a warning when
an eager or lazy load locates more than one valid value for
the row.  This may be due to primaryjoin/secondaryjoin
conditions which aren&#8217;t appropriate for an eager LEFT OUTER
JOIN or for other conditions.<a class="changeset-link reference internal" href="#change-5e3ba4eff181a0ee2c6a2fae40497392">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1643">#1643</a></p>
</p>
</li>
<li><p id="change-0.6beta1-14"><span class="target" id="change-928ff4154d8bca4127164af262f91d97"><strong>[orm] </strong></span>an explicit check occurs when a synonym() is used with
map_column=True, when a ColumnProperty (deferred or otherwise)
exists separately in the properties dictionary sent to mapper
with the same keyname.   Instead of silently replacing
the existing property (and possible options on that property),
an error is raised.<a class="changeset-link reference internal" href="#change-928ff4154d8bca4127164af262f91d97">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1633">#1633</a></p>
</p>
</li>
<li><p id="change-0.6beta1-15"><span class="target" id="change-07718a8de32eb50efa4fbd07e5184cb6"><strong>[orm] </strong></span>a &#8220;dynamic&#8221; loader sets up its query criterion at construction
time so that the actual query is returned from non-cloning
accessors like &#8220;statement&#8221;.<a class="changeset-link reference internal" href="#change-07718a8de32eb50efa4fbd07e5184cb6">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-16"><span class="target" id="change-9dd1e1039ec6832335cf05098fdffa0c"><strong>[orm] </strong></span>the &#8220;named tuple&#8221; objects returned when iterating a
Query() are now pickleable.<a class="changeset-link reference internal" href="#change-9dd1e1039ec6832335cf05098fdffa0c">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-17"><span class="target" id="change-06b035d8abba0f380e9761dbd450e938"><strong>[orm] </strong></span>mapping to a select() construct now requires that you
make an alias() out of it distinctly.   This to eliminate
confusion over such issues as<a class="changeset-link reference internal" href="#change-06b035d8abba0f380e9761dbd450e938">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1542">#1542</a></p>
</p>
</li>
<li><p id="change-0.6beta1-18"><span class="target" id="change-2f33bb379421251fd948d3fc38923eb1"><strong>[orm] </strong></span>query.join() has been reworked to provide more consistent
behavior and more flexibility (includes)<a class="changeset-link reference internal" href="#change-2f33bb379421251fd948d3fc38923eb1">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1537">#1537</a></p>
</p>
</li>
<li><p id="change-0.6beta1-19"><span class="target" id="change-6f2e3f51e6cb88f3cc790e88cde5f7c3"><strong>[orm] </strong></span>query.select_from() accepts multiple clauses to produce
multiple comma separated entries within the FROM clause.
Useful when selecting from multiple-homed join() clauses.<a class="changeset-link reference internal" href="#change-6f2e3f51e6cb88f3cc790e88cde5f7c3">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-20"><span class="target" id="change-0b82102fe6a1de325bd22dc40d50c613"><strong>[orm] </strong></span>query.select_from() also accepts mapped classes, aliased()
constructs, and mappers as arguments.  In particular this
helps when querying from multiple joined-table classes to ensure
the full join gets rendered.<a class="changeset-link reference internal" href="#change-0b82102fe6a1de325bd22dc40d50c613">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-21"><span class="target" id="change-3d610c09f7696ca04d48bc82efab5c5b"><strong>[orm] </strong></span>query.get() can be used with a mapping to an outer join
where one or more of the primary key values are None.<a class="changeset-link reference internal" href="#change-3d610c09f7696ca04d48bc82efab5c5b">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1135">#1135</a></p>
</p>
</li>
<li><p id="change-0.6beta1-22"><span class="target" id="change-0138642ce02e6d403c6713a13a4f9802"><strong>[orm] </strong></span>query.from_self(), query.union(), others which do a
&#8220;SELECT * from (SELECT...)&#8221; type of nesting will do
a better job translating column expressions within the subquery
to the columns clause of the outer query.  This is
potentially backwards incompatible with 0.5, in that this
may break queries with literal expressions that do not have labels
applied (i.e. literal(&#8216;foo&#8217;), etc.)<a class="changeset-link reference internal" href="#change-0138642ce02e6d403c6713a13a4f9802">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1568">#1568</a></p>
</p>
</li>
<li><p id="change-0.6beta1-23"><span class="target" id="change-e03cf72a3995480562eafd69ef7d11f0"><strong>[orm] </strong></span>relation primaryjoin and secondaryjoin now check that they
are column-expressions, not just clause elements.  this prohibits
things like FROM expressions being placed there directly.<a class="changeset-link reference internal" href="#change-e03cf72a3995480562eafd69ef7d11f0">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1622">#1622</a></p>
</p>
</li>
<li><p id="change-0.6beta1-24"><span class="target" id="change-0469e777a8df1fc45afc3ecfd6383189"><strong>[orm] </strong></span><cite>expression.null()</cite> is fully understood the same way
None is when comparing an object/collection-referencing
attribute within query.filter(), filter_by(), etc.<a class="changeset-link reference internal" href="#change-0469e777a8df1fc45afc3ecfd6383189">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1415">#1415</a></p>
</p>
</li>
<li><p id="change-0.6beta1-25"><span class="target" id="change-9d19cad8b2bcb624aa80df1327549f23"><strong>[orm] </strong></span>added &#8220;make_transient()&#8221; helper function which transforms a
persistent/ detached instance into a transient one (i.e.
deletes the instance_key and removes from any session.)<a class="changeset-link reference internal" href="#change-9d19cad8b2bcb624aa80df1327549f23">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1052">#1052</a></p>
</p>
</li>
<li><p id="change-0.6beta1-26"><span class="target" id="change-cd19ca85ff6299764da7a16446668186"><strong>[orm] </strong></span>the allow_null_pks flag on mapper() is deprecated, and
the feature is turned &#8220;on&#8221; by default.  This means that
a row which has a non-null value for any of its primary key
columns will be considered an identity.  The need for this
scenario typically only occurs when mapping to an outer join.<a class="changeset-link reference internal" href="#change-cd19ca85ff6299764da7a16446668186">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1339">#1339</a></p>
</p>
</li>
<li><p id="change-0.6beta1-27"><span class="target" id="change-889fc60ec4cd97646ec09e69b067e826"><strong>[orm] </strong></span>the mechanics of &#8220;backref&#8221; have been fully merged into the
finer grained &#8220;back_populates&#8221; system, and take place entirely
within the _generate_backref() method of RelationProperty.  This
makes the initialization procedure of RelationProperty
simpler and allows easier propagation of settings (such as from
subclasses of RelationProperty) into the reverse reference.
The internal BackRef() is gone and backref() returns a plain
tuple that is understood by RelationProperty.<a class="changeset-link reference internal" href="#change-889fc60ec4cd97646ec09e69b067e826">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-28"><span class="target" id="change-99cae53917a87e88ac70a5d5a153cdf9"><strong>[orm] </strong></span>The version_id_col feature on mapper() will raise a warning when
used with dialects that don&#8217;t support &#8220;rowcount&#8221; adequately.<a class="changeset-link reference internal" href="#change-99cae53917a87e88ac70a5d5a153cdf9">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1569">#1569</a></p>
</p>
</li>
<li><p id="change-0.6beta1-29"><span class="target" id="change-d516d907637bb775eebd34e7ee58ed13"><strong>[orm] </strong></span>added &#8220;execution_options()&#8221; to Query, to so options can be
passed to the resulting statement. Currently only
Select-statements have these options, and the only option
used is &#8220;stream_results&#8221;, and the only dialect which knows
&#8220;stream_results&#8221; is psycopg2.<a class="changeset-link reference internal" href="#change-d516d907637bb775eebd34e7ee58ed13">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-30"><span class="target" id="change-573842e45f126bdd2938caf4c37f003e"><strong>[orm] </strong></span>Query.yield_per() will set the &#8220;stream_results&#8221; statement
option automatically.<a class="changeset-link reference internal" href="#change-573842e45f126bdd2938caf4c37f003e">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-31"><span class="target" id="change-d843edca2b75b293e8e6826030ff0227"><strong>[orm] </strong></span><dl class="docutils">
<dt>Deprecated or removed:</dt>
<dd><ul class="first last">
<li>&#8216;allow_null_pks&#8217; flag on mapper() is deprecated.  It does
nothing now and the setting is &#8220;on&#8221; in all cases.</li>
<li>&#8216;transactional&#8217; flag on sessionmaker() and others is
removed. Use &#8216;autocommit=True&#8217; to indicate &#8216;transactional=False&#8217;.</li>
<li>&#8216;polymorphic_fetch&#8217; argument on mapper() is removed.
Loading can be controlled using the &#8216;with_polymorphic&#8217;
option.</li>
<li>&#8216;select_table&#8217; argument on mapper() is removed.  Use
&#8216;with_polymorphic=(&#8220;*&#8221;, &lt;some selectable&gt;)&#8217; for this
functionality.</li>
<li>&#8216;proxy&#8217; argument on synonym() is removed.  This flag
did nothing throughout 0.5, as the &#8220;proxy generation&#8221;
behavior is now automatic.</li>
<li>Passing a single list of elements to eagerload(),
eagerload_all(), contains_eager(), lazyload(),
defer(), and undefer() instead of multiple positional
<a href="#id5"><span class="problematic" id="id6">*</span></a>args is deprecated.</li>
<li>Passing a single list of elements to query.order_by(),
query.group_by(), query.join(), or query.outerjoin()
instead of multiple positional <a href="#id7"><span class="problematic" id="id8">*</span></a>args is deprecated.</li>
<li>query.iterate_instances() is removed.  Use query.instances().</li>
<li>Query.query_from_parent() is removed.  Use the
sqlalchemy.orm.with_parent() function to produce a
&#8220;parent&#8221; clause, or alternatively query.with_parent().</li>
<li>query._from_self() is removed, use query.from_self()
instead.</li>
<li>the &#8220;comparator&#8221; argument to composite() is removed.
Use &#8220;comparator_factory&#8221;.</li>
<li>RelationProperty._get_join() is removed.</li>
<li>the &#8216;echo_uow&#8217; flag on Session is removed.  Use
logging on the &#8220;sqlalchemy.orm.unitofwork&#8221; name.</li>
<li>session.clear() is removed.  use session.expunge_all().</li>
<li>session.save(), session.update(), session.save_or_update()
are removed.  Use session.add() and session.add_all().</li>
<li>the &#8220;objects&#8221; flag on session.flush() remains deprecated.</li>
<li>the &#8220;dont_load=True&#8221; flag on session.merge() is deprecated
in favor of &#8220;load=False&#8221;.</li>
<li>ScopedSession.mapper remains deprecated.  See the
usage recipe at
<a class="reference external" href="http://www.sqlalchemy.org/trac/wiki/UsageRecipes/SessionAwareMapper">http://www.sqlalchemy.org/trac/wiki/UsageRecipes/SessionAwareMapper</a></li>
<li>passing an InstanceState (internal SQLAlchemy state object) to
attributes.init_collection() or attributes.get_history() is
deprecated.  These functions are public API and normally
expect a regular mapped object instance.</li>
<li>the &#8216;engine&#8217; parameter to declarative_base() is removed.
Use the &#8216;bind&#8217; keyword argument.</li>
</ul>
</dd>
</dl>
<a class="changeset-link reference internal" href="#change-d843edca2b75b293e8e6826030ff0227">(link)</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6beta1-sql">
<h3>sql<a class="headerlink" href="#change-0.6beta1-sql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6beta1-32"><span class="target" id="change-fb7c367607c59c771a13ad200c90eff3"><strong>[sql] </strong></span>the &#8220;autocommit&#8221; flag on select() and text() as well
as select().autocommit() are deprecated - now call
.execution_options(autocommit=True) on either of those
constructs, also available directly on Connection and orm.Query.<a class="changeset-link reference internal" href="#change-fb7c367607c59c771a13ad200c90eff3">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-33"><span class="target" id="change-02d9b147f287fd9766176ef94cdc13cc"><strong>[sql] </strong></span>the autoincrement flag on column now indicates the column
which should be linked to cursor.lastrowid, if that method
is used.  See the API docs for details.<a class="changeset-link reference internal" href="#change-02d9b147f287fd9766176ef94cdc13cc">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-34"><span class="target" id="change-44921036aa99c1e3663922170c206e27"><strong>[sql] </strong></span>an executemany() now requires that all bound parameter
sets require that all keys are present which are
present in the first bound parameter set.  The structure
and behavior of an insert/update statement is very much
determined by the first parameter set, including which
defaults are going to fire off, and a minimum of
guesswork is performed with all the rest so that performance
is not impacted.  For this reason defaults would otherwise
silently &#8220;fail&#8221; for missing parameters, so this is now guarded
against.<a class="changeset-link reference internal" href="#change-44921036aa99c1e3663922170c206e27">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1566">#1566</a></p>
</p>
</li>
<li><p id="change-0.6beta1-35"><span class="target" id="change-e095b275cd65347bb96a118ac93a37c4"><strong>[sql] </strong></span>returning() support is native to insert(), update(),
delete(). Implementations of varying levels of
functionality exist for Postgresql, Firebird, MSSQL and
Oracle. returning() can be called explicitly with column
expressions which are then returned in the resultset,
usually via fetchone() or first().<p>insert() constructs will also use RETURNING implicitly to
get newly generated primary key values, if the database
version in use supports it (a version number check is
performed). This occurs if no end-user returning() was
specified.</p>
<a class="changeset-link reference internal" href="#change-e095b275cd65347bb96a118ac93a37c4">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-36"><span class="target" id="change-8bc93521d51aa26c8f23a0d45da1f78f"><strong>[sql] </strong></span>union(), intersect(), except() and other &#8220;compound&#8221; types
of statements have more consistent behavior w.r.t.
parenthesizing.   Each compound element embedded within
another will now be grouped with parenthesis - previously,
the first compound element in the list would not be grouped,
as SQLite doesn&#8217;t like a statement to start with
parenthesis.   However, Postgresql in particular has
precedence rules regarding INTERSECT, and it is
more consistent for parenthesis to be applied equally
to all sub-elements.   So now, the workaround for SQLite
is also what the workaround for PG was previously -
when nesting compound elements, the first one usually needs
&#8221;.alias().select()&#8221; called on it to wrap it inside
of a subquery.<a class="changeset-link reference internal" href="#change-8bc93521d51aa26c8f23a0d45da1f78f">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1665">#1665</a></p>
</p>
</li>
<li><p id="change-0.6beta1-37"><span class="target" id="change-ddbccf30154057e0b830866c4813ff38"><strong>[sql] </strong></span>insert() and update() constructs can now embed bindparam()
objects using names that match the keys of columns.  These
bind parameters will circumvent the usual route to those
keys showing up in the VALUES or SET clause of the generated
SQL.<a class="changeset-link reference internal" href="#change-ddbccf30154057e0b830866c4813ff38">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1579">#1579</a></p>
</p>
</li>
<li><p id="change-0.6beta1-38"><span class="target" id="change-2234986f2a344f994dd47e033a358adf"><strong>[sql] </strong></span>the Binary type now returns data as a Python string
(or a &#8220;bytes&#8221; type in Python 3), instead of the built-
in &#8220;buffer&#8221; type.  This allows symmetric round trips
of binary data.<a class="changeset-link reference internal" href="#change-2234986f2a344f994dd47e033a358adf">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1524">#1524</a></p>
</p>
</li>
<li><p id="change-0.6beta1-39"><span class="target" id="change-d289821e49dd5b365135f2c232b5cf05"><strong>[sql] </strong></span>Added a tuple_() construct, allows sets of expressions
to be compared to another set, typically with IN against
composite primary keys or similar.  Also accepts an
IN with multiple columns.   The &#8220;scalar select can
have only one column&#8221; error message is removed - will
rely upon the database to report problems with
col mismatch.<a class="changeset-link reference internal" href="#change-d289821e49dd5b365135f2c232b5cf05">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-40"><span class="target" id="change-d00d40f3ec5206589179af88c62a6276"><strong>[sql] </strong></span>User-defined &#8220;default&#8221; and &#8220;onupdate&#8221; callables which
accept a context should now call upon
&#8220;context.current_parameters&#8221; to get at the dictionary
of bind parameters currently being processed.  This
dict is available in the same way regardless of
single-execute or executemany-style statement execution.<a class="changeset-link reference internal" href="#change-d00d40f3ec5206589179af88c62a6276">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-41"><span class="target" id="change-7d51e4139db389357f578e2a93a26383"><strong>[sql] </strong></span>multi-part schema names, i.e. with dots such as
&#8220;dbo.master&#8221;, are now rendered in select() labels
with underscores for dots, i.e. &#8220;dbo_master_table_column&#8221;.
This is a &#8220;friendly&#8221; label that behaves better
in result sets.<a class="changeset-link reference internal" href="#change-7d51e4139db389357f578e2a93a26383">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1428">#1428</a></p>
</p>
</li>
<li><p id="change-0.6beta1-42"><span class="target" id="change-37c425d83297ecedcb415b054cbfb50d"><strong>[sql] </strong></span>removed needless &#8220;counter&#8221; behavior with select()
labelnames that match a column name in the table,
i.e. generates &#8220;tablename_id&#8221; for &#8220;id&#8221;, instead of
&#8220;tablename_id_1&#8221; in an attempt to avoid naming
conflicts, when the table has a column actually
named &#8220;tablename_id&#8221; - this is because
the labeling logic is always applied to all columns
so a naming conflict will never occur.<a class="changeset-link reference internal" href="#change-37c425d83297ecedcb415b054cbfb50d">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-43"><span class="target" id="change-1577657989ab5d5a2f90784ad84ebc9c"><strong>[sql] </strong></span>calling expr.in_([]), i.e. with an empty list, emits a warning
before issuing the usual &#8220;expr != expr&#8221; clause.  The
&#8220;expr != expr&#8221; can be very expensive, and it&#8217;s preferred
that the user not issue in_() if the list is empty,
instead simply not querying, or modifying the criterion<blockquote>
<div>as appropriate for more complex situations.</div></blockquote>
<a class="changeset-link reference internal" href="#change-1577657989ab5d5a2f90784ad84ebc9c">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1628">#1628</a></p>
</p>
</li>
<li><p id="change-0.6beta1-44"><span class="target" id="change-68e1263644f8e10f85069545aa29651b"><strong>[sql] </strong></span>Added &#8220;execution_options()&#8221; to select()/text(), which set the
default options for the Connection.  See the note in &#8220;engines&#8221;.<a class="changeset-link reference internal" href="#change-68e1263644f8e10f85069545aa29651b">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-45"><span class="target" id="change-75e0f1cc822ddf23d6706587c9fff333"><strong>[sql] </strong></span><dl class="docutils">
<dt>Deprecated or removed:</dt>
<dd><ul class="first last">
<li>&#8220;scalar&#8221; flag on select() is removed, use
select.as_scalar().</li>
<li>&#8220;shortname&#8221; attribute on bindparam() is removed.</li>
<li>postgres_returning, firebird_returning flags on
insert(), update(), delete() are deprecated, use
the new returning() method.</li>
<li>fold_equivalents flag on join is deprecated (will remain
until is implemented)</li>
</ul>
</dd>
</dl>
<a class="changeset-link reference internal" href="#change-75e0f1cc822ddf23d6706587c9fff333">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1131">#1131</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6beta1-schema">
<h3>schema<a class="headerlink" href="#change-0.6beta1-schema" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6beta1-46"><span class="target" id="change-ff302fdf3eae53485eaf643550894fce"><strong>[schema] </strong></span>the <cite>__contains__()</cite> method of <cite>MetaData</cite> now accepts
strings or <cite>Table</cite> objects as arguments.  If given
a <cite>Table</cite>, the argument is converted to <cite>table.key</cite> first,
i.e. &#8220;[schemaname.]&lt;tablename&gt;&#8221;<a class="changeset-link reference internal" href="#change-ff302fdf3eae53485eaf643550894fce">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1541">#1541</a></p>
</p>
</li>
<li><p id="change-0.6beta1-47"><span class="target" id="change-a9146fbceff794c8fb5012e08c8f2197"><strong>[schema] </strong></span>deprecated MetaData.connect() and
ThreadLocalMetaData.connect() have been removed - send
the &#8220;bind&#8221; attribute to bind a metadata.<a class="changeset-link reference internal" href="#change-a9146fbceff794c8fb5012e08c8f2197">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-48"><span class="target" id="change-d414bfe8495de9441bb1bf9a225a8196"><strong>[schema] </strong></span>deprecated metadata.table_iterator() method removed (use
sorted_tables)<a class="changeset-link reference internal" href="#change-d414bfe8495de9441bb1bf9a225a8196">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-49"><span class="target" id="change-bc8dd4045ac44c12d17016986c52e8a4"><strong>[schema] </strong></span>deprecated PassiveDefault - use DefaultClause.<a class="changeset-link reference internal" href="#change-bc8dd4045ac44c12d17016986c52e8a4">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-50"><span class="target" id="change-6438f724479e0e0d1cc699f14e1cd25b"><strong>[schema] </strong></span>the &#8220;metadata&#8221; argument is removed from DefaultGenerator
and subclasses, but remains locally present on Sequence,
which is a standalone construct in DDL.<a class="changeset-link reference internal" href="#change-6438f724479e0e0d1cc699f14e1cd25b">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-51"><span class="target" id="change-1289d6e528c69ff4828bd5851baaeb61"><strong>[schema] </strong></span>Removed public mutability from Index and Constraint
objects:<blockquote>
<div><ul>
<li>ForeignKeyConstraint.append_element()</li>
<li>Index.append_column()</li>
<li>UniqueConstraint.append_column()</li>
<li>PrimaryKeyConstraint.add()</li>
<li>PrimaryKeyConstraint.remove()</li>
</ul>
</div></blockquote>
<p>These should be constructed declaratively (i.e. in one
construction).</p>
<a class="changeset-link reference internal" href="#change-1289d6e528c69ff4828bd5851baaeb61">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-52"><span class="target" id="change-ffb3a65d9b8484533b1fb233f819985e"><strong>[schema] </strong></span>The &#8220;start&#8221; and &#8220;increment&#8221; attributes on Sequence now
generate &#8220;START WITH&#8221; and &#8220;INCREMENT BY&#8221; by default,
on Oracle and Postgresql.  Firebird doesn&#8217;t support
these keywords right now.<a class="changeset-link reference internal" href="#change-ffb3a65d9b8484533b1fb233f819985e">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1545">#1545</a></p>
</p>
</li>
<li><p id="change-0.6beta1-53"><span class="target" id="change-a8942fa6a4323b73e46a368c718b08e8"><strong>[schema] </strong></span>UniqueConstraint, Index, PrimaryKeyConstraint all accept
lists of column names or column objects as arguments.<a class="changeset-link reference internal" href="#change-a8942fa6a4323b73e46a368c718b08e8">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-54"><span class="target" id="change-9888d956fff0bd32aa9a418e14e7df29"><strong>[schema] </strong></span><dl class="docutils">
<dt>Other removed things:</dt>
<dd><ul class="first last">
<li>Table.key (no idea what this was for)</li>
<li>Table.primary_key is not assignable - use
table.append_constraint(PrimaryKeyConstraint(...))</li>
<li>Column.bind       (get via column.table.bind)</li>
<li>Column.metadata   (get via column.table.metadata)</li>
<li>Column.sequence   (use column.default)</li>
<li>ForeignKey(constraint=some_parent) (is now private _constraint)</li>
</ul>
</dd>
</dl>
<a class="changeset-link reference internal" href="#change-9888d956fff0bd32aa9a418e14e7df29">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-55"><span class="target" id="change-45384a58304926e78dbc93a8bc4bdbea"><strong>[schema] </strong></span>The use_alter flag on ForeignKey is now a shortcut option
for operations that can be hand-constructed using the
DDL() event system. A side effect of this refactor is
that ForeignKeyConstraint objects with use_alter=True
will <em>not</em> be emitted on SQLite, which does not support
ALTER for foreign keys.<a class="changeset-link reference internal" href="#change-45384a58304926e78dbc93a8bc4bdbea">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-56"><span class="target" id="change-39be51b87c7530f3281ae5dc05fc5294"><strong>[schema] </strong></span>ForeignKey and ForeignKeyConstraint objects now correctly
copy() all their public keyword arguments.<a class="changeset-link reference internal" href="#change-39be51b87c7530f3281ae5dc05fc5294">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1605">#1605</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6beta1-postgresql">
<h3>postgresql<a class="headerlink" href="#change-0.6beta1-postgresql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6beta1-57"><span class="target" id="change-8e276ba771e1923acab769effd7fdebf"><strong>[postgresql] </strong></span>New dialects: pg8000, zxjdbc, and pypostgresql
on py3k.<a class="changeset-link reference internal" href="#change-8e276ba771e1923acab769effd7fdebf">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-58"><span class="target" id="change-0ce9ee480a5a66cb9f77e0207f6dfc70"><strong>[postgresql] </strong></span>The &#8220;postgres&#8221; dialect is now named &#8220;postgresql&#8221; !
Connection strings look like:<blockquote>
<div><blockquote>
<div>postgresql://scott:tiger&#64;localhost/test
postgresql+pg8000://scott:tiger&#64;localhost/test</div></blockquote>
<p>The &#8220;postgres&#8221; name remains for backwards compatiblity
in the following ways:</p>
<blockquote>
<div><ul>
<li>There is a &#8220;postgres.py&#8221; dummy dialect which
allows old URLs to work, i.e.
postgres://scott:tiger&#64;localhost/test</li>
<li>The &#8220;postgres&#8221; name can be imported from the old
&#8220;databases&#8221; module, i.e. &#8220;from
sqlalchemy.databases import postgres&#8221; as well as
&#8220;dialects&#8221;, &#8220;from sqlalchemy.dialects.postgres
import base as pg&#8221;, will send a deprecation
warning.</li>
<li>Special expression arguments are now named
&#8220;postgresql_returning&#8221; and &#8220;postgresql_where&#8221;, but
the older &#8220;postgres_returning&#8221; and
&#8220;postgres_where&#8221; names still work with a
deprecation warning.</li>
</ul>
</div></blockquote>
</div></blockquote>
<a class="changeset-link reference internal" href="#change-0ce9ee480a5a66cb9f77e0207f6dfc70">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-59"><span class="target" id="change-32e87704d92335d84d218fb1a739484d"><strong>[postgresql] </strong></span>&#8220;postgresql_where&#8221; now accepts SQL expressions which
can also include literals, which will be quoted as needed.<a class="changeset-link reference internal" href="#change-32e87704d92335d84d218fb1a739484d">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-60"><span class="target" id="change-eb44c66b3b7d732aeac35e9d8ea81bdc"><strong>[postgresql] </strong></span>The psycopg2 dialect now uses psycopg2&#8217;s &#8220;unicode extension&#8221;
on all new connections, which allows all String/Text/etc.
types to skip the need to post-process bytestrings into
unicode (an expensive step due to its volume).  Other
dialects which return unicode natively (pg8000, zxjdbc)
also skip unicode post-processing.<a class="changeset-link reference internal" href="#change-eb44c66b3b7d732aeac35e9d8ea81bdc">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-61"><span class="target" id="change-38d3d336ce046ae00fc5d2a0a17fae47"><strong>[postgresql] </strong></span>Added new ENUM type, which exists as a schema-level
construct and extends the generic Enum type.  Automatically
associates itself with tables and their parent metadata
to issue the appropriate CREATE TYPE/DROP TYPE
commands as needed, supports unicode labels, supports
reflection.<a class="changeset-link reference internal" href="#change-38d3d336ce046ae00fc5d2a0a17fae47">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1511">#1511</a></p>
</p>
</li>
<li><p id="change-0.6beta1-62"><span class="target" id="change-0efdc52b41c7cbb4edde516d0cf35ebd"><strong>[postgresql] </strong></span>INTERVAL supports an optional &#8220;precision&#8221; argument
corresponding to the argument that PG accepts.<a class="changeset-link reference internal" href="#change-0efdc52b41c7cbb4edde516d0cf35ebd">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-63"><span class="target" id="change-ce8ff886d9ea060a749895bb38ba108c"><strong>[postgresql] </strong></span>using new dialect.initialize() feature to set up
version-dependent behavior.<a class="changeset-link reference internal" href="#change-ce8ff886d9ea060a749895bb38ba108c">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-64"><span class="target" id="change-525b22121367b91b5ed308272c08ce24"><strong>[postgresql] </strong></span>somewhat better support for % signs in table/column names;
psycopg2 can&#8217;t handle a bind parameter name of
%(foobar)s however and SQLA doesn&#8217;t want to add overhead
just to treat that one non-existent use case.<a class="changeset-link reference internal" href="#change-525b22121367b91b5ed308272c08ce24">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1279">#1279</a></p>
</p>
</li>
<li><p id="change-0.6beta1-65"><span class="target" id="change-4fe9c121af9d9045fdae2cb23d04a9bd"><strong>[postgresql] </strong></span>Inserting NULL into a primary key + foreign key column
will allow the &#8220;not null constraint&#8221; error to raise,
not an attempt to execute a nonexistent &#8220;col_id_seq&#8221;
sequence.<a class="changeset-link reference internal" href="#change-4fe9c121af9d9045fdae2cb23d04a9bd">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1516">#1516</a></p>
</p>
</li>
<li><p id="change-0.6beta1-66"><span class="target" id="change-cf8ec160ec789b23afbd8a5fffd65a67"><strong>[postgresql] </strong></span>autoincrement SELECT statements, i.e. those which
select from a procedure that modifies rows, now work
with server-side cursor mode (the named cursor isn&#8217;t
used for such statements.)<a class="changeset-link reference internal" href="#change-cf8ec160ec789b23afbd8a5fffd65a67">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-67"><span class="target" id="change-b98cc90c64cb3bba3ab1bda67c0d1dbd"><strong>[postgresql] </strong></span>postgresql dialect can properly detect pg &#8220;devel&#8221; version
strings, i.e. &#8220;8.5devel&#8221;<a class="changeset-link reference internal" href="#change-b98cc90c64cb3bba3ab1bda67c0d1dbd">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1636">#1636</a></p>
</p>
</li>
<li><p id="change-0.6beta1-68"><span class="target" id="change-df47fe2890dbf80af0c731002686995e"><strong>[postgresql] </strong></span>The psycopg2 now respects the statement option
&#8220;stream_results&#8221;. This option overrides the connection setting
&#8220;server_side_cursors&#8221;. If true, server side cursors will be
used for the statement. If false, they will not be used, even
if &#8220;server_side_cursors&#8221; is true on the
connection.<a class="changeset-link reference internal" href="#change-df47fe2890dbf80af0c731002686995e">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1619">#1619</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6beta1-mysql">
<h3>mysql<a class="headerlink" href="#change-0.6beta1-mysql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6beta1-69"><span class="target" id="change-7a47739bb4cdfd029d2ad396df7e6bd3"><strong>[mysql] </strong></span>New dialects: oursql, a new native dialect,
MySQL Connector/Python, a native Python port of MySQLdb,
and of course zxjdbc on Jython.<a class="changeset-link reference internal" href="#change-7a47739bb4cdfd029d2ad396df7e6bd3">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-70"><span class="target" id="change-7f170bebdb4d3fbbf03679e858799239"><strong>[mysql] </strong></span>VARCHAR/NVARCHAR will not render without a length, raises
an error before passing to MySQL.   Doesn&#8217;t impact
CAST since VARCHAR is not allowed in MySQL CAST anyway,
the dialect renders CHAR/NCHAR in those cases.<a class="changeset-link reference internal" href="#change-7f170bebdb4d3fbbf03679e858799239">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-71"><span class="target" id="change-5a1277f6fa3da9da056c0b6ab7278415"><strong>[mysql] </strong></span>all the _detect_XXX() functions now run once underneath
dialect.initialize()<a class="changeset-link reference internal" href="#change-5a1277f6fa3da9da056c0b6ab7278415">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-72"><span class="target" id="change-3392dd5483c5d3b9c1d83017e78bf58e"><strong>[mysql] </strong></span>somewhat better support for % signs in table/column names;
MySQLdb can&#8217;t handle % signs in SQL when executemany() is used,
and SQLA doesn&#8217;t want to add overhead just to treat that one
non-existent use case.<a class="changeset-link reference internal" href="#change-3392dd5483c5d3b9c1d83017e78bf58e">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1279">#1279</a></p>
</p>
</li>
<li><p id="change-0.6beta1-73"><span class="target" id="change-5ecc352d1de84aa90c39746ab807efe1"><strong>[mysql] </strong></span>the BINARY and MSBinary types now generate &#8220;BINARY&#8221; in all
cases.  Omitting the &#8220;length&#8221; parameter will generate
&#8220;BINARY&#8221; with no length.  Use BLOB to generate an unlengthed
binary column.<a class="changeset-link reference internal" href="#change-5ecc352d1de84aa90c39746ab807efe1">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-74"><span class="target" id="change-188cc3f410c74dcfcbee1067d88343f8"><strong>[mysql] </strong></span>the &#8220;quoting=&#8217;quoted&#8217;&#8221; argument to MSEnum/ENUM is deprecated.
It&#8217;s best to rely upon the automatic quoting.<a class="changeset-link reference internal" href="#change-188cc3f410c74dcfcbee1067d88343f8">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-75"><span class="target" id="change-9857837ab57118c270956f183581049e"><strong>[mysql] </strong></span>ENUM now subclasses the new generic Enum type, and also handles
unicode values implicitly, if the given labelnames are unicode
objects.<a class="changeset-link reference internal" href="#change-9857837ab57118c270956f183581049e">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-76"><span class="target" id="change-3a5af57ac623dd1f8cfef840898452b2"><strong>[mysql] </strong></span>a column of type TIMESTAMP now defaults to NULL if
&#8220;nullable=False&#8221; is not passed to Column(), and no default
is present. This is now consistent with all other types,
and in the case of TIMESTAMP explictly renders &#8220;NULL&#8221;
due to MySQL&#8217;s &#8220;switching&#8221; of default nullability
for TIMESTAMP columns.<a class="changeset-link reference internal" href="#change-3a5af57ac623dd1f8cfef840898452b2">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1539">#1539</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6beta1-sqlite">
<h3>sqlite<a class="headerlink" href="#change-0.6beta1-sqlite" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6beta1-77"><span class="target" id="change-cdd833e10180536b712d6cf4e72992c4"><strong>[sqlite] </strong></span>DATE, TIME and DATETIME types can now take optional storage_format
and regexp argument. storage_format can be used to store those types
using a custom string format. regexp allows to use a custom regular
expression to match string values from the database.<a class="changeset-link reference internal" href="#change-cdd833e10180536b712d6cf4e72992c4">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-78"><span class="target" id="change-f1b7d03a6b936597bce7908effb557cc"><strong>[sqlite] </strong></span>Time and DateTime types now use by a default a stricter regular
expression to match strings from the database. Use the regexp
argument if you are using data stored in a legacy format.<a class="changeset-link reference internal" href="#change-f1b7d03a6b936597bce7908effb557cc">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-79"><span class="target" id="change-c35f7a555ea6c9d52e60250e368f50dc"><strong>[sqlite] </strong></span>__legacy_microseconds__ on SQLite Time and DateTime types is not
supported anymore. You should use the storage_format argument
instead.<a class="changeset-link reference internal" href="#change-c35f7a555ea6c9d52e60250e368f50dc">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-80"><span class="target" id="change-7158af5ebe6bfe2924688710bf9d16c4"><strong>[sqlite] </strong></span>Date, Time and DateTime types are now stricter in what they accept as
bind parameters: Date type only accepts date objects (and datetime
ones, because they inherit from date), Time only accepts time
objects, and DateTime only accepts date and datetime objects.<a class="changeset-link reference internal" href="#change-7158af5ebe6bfe2924688710bf9d16c4">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-81"><span class="target" id="change-24b4b7e7be9ca2ec058e2bb450f0cde1"><strong>[sqlite] </strong></span>Table() supports a keyword argument &#8220;sqlite_autoincrement&#8221;, which
applies the SQLite keyword &#8220;AUTOINCREMENT&#8221; to the single integer
primary key column when generating DDL. Will prevent generation of
a separate PRIMARY KEY constraint.<a class="changeset-link reference internal" href="#change-24b4b7e7be9ca2ec058e2bb450f0cde1">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1016">#1016</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6beta1-mssql">
<h3>mssql<a class="headerlink" href="#change-0.6beta1-mssql" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6beta1-82"><span class="target" id="change-57d985c44bc4a8846cafda5cde966ab5"><strong>[mssql] </strong></span>MSSQL + Pyodbc + FreeTDS now works for the most part,
with possible exceptions regarding binary data as well as
unicode schema identifiers.<a class="changeset-link reference internal" href="#change-57d985c44bc4a8846cafda5cde966ab5">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-83"><span class="target" id="change-870c7f02908eaf9dd76a606a56561da7"><strong>[mssql] </strong></span>the &#8220;has_window_funcs&#8221; flag is removed. LIMIT/OFFSET
usage will use ROW NUMBER as always, and if on an older
version of SQL Server, the operation fails. The behavior
is exactly the same except the error is raised by SQL
server instead of the dialect, and no flag setting is
required to enable it.<a class="changeset-link reference internal" href="#change-870c7f02908eaf9dd76a606a56561da7">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-84"><span class="target" id="change-83e8899feb9e875a26f54ec93b6d891e"><strong>[mssql] </strong></span>the &#8220;auto_identity_insert&#8221; flag is removed. This feature
always takes effect when an INSERT statement overrides a
column that is known to have a sequence on it. As with
&#8220;has_window_funcs&#8221;, if the underlying driver doesn&#8217;t
support this, then you can&#8217;t do this operation in any
case, so there&#8217;s no point in having a flag.<a class="changeset-link reference internal" href="#change-83e8899feb9e875a26f54ec93b6d891e">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-85"><span class="target" id="change-ce8ff886d9ea060a749895bb38ba108c"><strong>[mssql] </strong></span>using new dialect.initialize() feature to set up
version-dependent behavior.<a class="changeset-link reference internal" href="#change-ce8ff886d9ea060a749895bb38ba108c">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-86"><span class="target" id="change-23bb79f6af16be836727eca4716407b3"><strong>[mssql] </strong></span>removed references to sequence which is no longer used.
implicit identities in mssql work the same as implicit
sequences on any other dialects. Explicit sequences are
enabled through the use of &#8220;default=Sequence()&#8221;. See
the MSSQL dialect documentation for more information.<a class="changeset-link reference internal" href="#change-23bb79f6af16be836727eca4716407b3">(link)</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6beta1-oracle">
<h3>oracle<a class="headerlink" href="#change-0.6beta1-oracle" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6beta1-87"><span class="target" id="change-113b8b0993a9fa2dc0b7edd4704fbb42"><strong>[oracle] </strong></span>unit tests pass 100% with cx_oracle !<a class="changeset-link reference internal" href="#change-113b8b0993a9fa2dc0b7edd4704fbb42">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-88"><span class="target" id="change-ab3ce587a20ea73535ae07213b287bd2"><strong>[oracle] </strong></span>support for cx_Oracle&#8217;s &#8220;native unicode&#8221; mode which does
not require NLS_LANG to be set. Use the latest 5.0.2 or
later of cx_oracle.<a class="changeset-link reference internal" href="#change-ab3ce587a20ea73535ae07213b287bd2">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-89"><span class="target" id="change-b2948a9f95dde029f129261698424123"><strong>[oracle] </strong></span>an NCLOB type is added to the base types.<a class="changeset-link reference internal" href="#change-b2948a9f95dde029f129261698424123">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-90"><span class="target" id="change-7ca8af81feacfd6b9f2ce42f5828e1a4"><strong>[oracle] </strong></span>use_ansi=False won&#8217;t leak into the FROM/WHERE clause of
a statement that&#8217;s selecting from a subquery that also
uses JOIN/OUTERJOIN.<a class="changeset-link reference internal" href="#change-7ca8af81feacfd6b9f2ce42f5828e1a4">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-91"><span class="target" id="change-393f3fb1ddbce4735e553646ae6233f1"><strong>[oracle] </strong></span>added native INTERVAL type to the dialect.  This supports
only the DAY TO SECOND interval type so far due to lack
of support in cx_oracle for YEAR TO MONTH.<a class="changeset-link reference internal" href="#change-393f3fb1ddbce4735e553646ae6233f1">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1467">#1467</a></p>
</p>
</li>
<li><p id="change-0.6beta1-92"><span class="target" id="change-0991def0de5a17cae52ca7d4d7bc71fe"><strong>[oracle] </strong></span>usage of the CHAR type results in cx_oracle&#8217;s
FIXED_CHAR dbapi type being bound to statements.<a class="changeset-link reference internal" href="#change-0991def0de5a17cae52ca7d4d7bc71fe">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-93"><span class="target" id="change-17dc85d30f2488fe7b6895a6e18faf2d"><strong>[oracle] </strong></span>the Oracle dialect now features NUMBER which intends
to act justlike Oracle&#8217;s NUMBER type.  It is the primary
numeric type returned by table reflection and attempts
to return Decimal()/float/int based on the precision/scale
parameters.<a class="changeset-link reference internal" href="#change-17dc85d30f2488fe7b6895a6e18faf2d">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/885">#885</a></p>
</p>
</li>
<li><p id="change-0.6beta1-94"><span class="target" id="change-96d06864792feffb4a6a52695b5756ef"><strong>[oracle] </strong></span>func.char_length is a generic function for LENGTH<a class="changeset-link reference internal" href="#change-96d06864792feffb4a6a52695b5756ef">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-95"><span class="target" id="change-8736cc2e4e76ced8e037e0353686bc90"><strong>[oracle] </strong></span>ForeignKey() which includes onupdate=&lt;value&gt; will emit a
warning, not emit ON UPDATE CASCADE which is unsupported
by oracle<a class="changeset-link reference internal" href="#change-8736cc2e4e76ced8e037e0353686bc90">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-96"><span class="target" id="change-f427ca1185fb9a016f0a48f421816d0d"><strong>[oracle] </strong></span>the keys() method of RowProxy() now returns the result
column names <em>normalized</em> to be SQLAlchemy case
insensitive names. This means they will be lower case for
case insensitive names, whereas the DBAPI would normally
return them as UPPERCASE names. This allows row keys() to
be compatible with further SQLAlchemy operations.<a class="changeset-link reference internal" href="#change-f427ca1185fb9a016f0a48f421816d0d">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-97"><span class="target" id="change-ce8ff886d9ea060a749895bb38ba108c"><strong>[oracle] </strong></span>using new dialect.initialize() feature to set up
version-dependent behavior.<a class="changeset-link reference internal" href="#change-ce8ff886d9ea060a749895bb38ba108c">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-98"><span class="target" id="change-695adf4c5253eb83c2d4d5bd3288f373"><strong>[oracle] </strong></span>using types.BigInteger with Oracle will generate
NUMBER(19)<a class="changeset-link reference internal" href="#change-695adf4c5253eb83c2d4d5bd3288f373">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1125">#1125</a></p>
</p>
</li>
<li><p id="change-0.6beta1-99"><span class="target" id="change-10e463fe98ba913938ae4afeb008d31f"><strong>[oracle] </strong></span>&#8220;case sensitivity&#8221; feature will detect an all-lowercase
case-sensitive column name during reflect and add
&#8220;quote=True&#8221; to the generated Column, so that proper
quoting is maintained.<a class="changeset-link reference internal" href="#change-10e463fe98ba913938ae4afeb008d31f">(link)</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6beta1-firebird">
<h3>firebird<a class="headerlink" href="#change-0.6beta1-firebird" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6beta1-100"><span class="target" id="change-f427ca1185fb9a016f0a48f421816d0d"><strong>[firebird] </strong></span>the keys() method of RowProxy() now returns the result
column names <em>normalized</em> to be SQLAlchemy case
insensitive names. This means they will be lower case for
case insensitive names, whereas the DBAPI would normally
return them as UPPERCASE names. This allows row keys() to
be compatible with further SQLAlchemy operations.<a class="changeset-link reference internal" href="#change-f427ca1185fb9a016f0a48f421816d0d">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-101"><span class="target" id="change-ce8ff886d9ea060a749895bb38ba108c"><strong>[firebird] </strong></span>using new dialect.initialize() feature to set up
version-dependent behavior.<a class="changeset-link reference internal" href="#change-ce8ff886d9ea060a749895bb38ba108c">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-102"><span class="target" id="change-10e463fe98ba913938ae4afeb008d31f"><strong>[firebird] </strong></span>&#8220;case sensitivity&#8221; feature will detect an all-lowercase
case-sensitive column name during reflect and add
&#8220;quote=True&#8221; to the generated Column, so that proper
quoting is maintained.<a class="changeset-link reference internal" href="#change-10e463fe98ba913938ae4afeb008d31f">(link)</a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6beta1-misc">
<h3>misc<a class="headerlink" href="#change-0.6beta1-misc" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.6beta1-103"><span class="target" id="change-c9d5768f02fc70a1c4200ea76ae3d312"><strong>[release] [major] </strong></span>For the full set of feature descriptions, see
<a class="reference external" href="http://www.sqlalchemy.org/trac/wiki/06Migration">http://www.sqlalchemy.org/trac/wiki/06Migration</a> .
This document is a work in progress.<a class="changeset-link reference internal" href="#change-c9d5768f02fc70a1c4200ea76ae3d312">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-104"><span class="target" id="change-dca0b8a1f7cb8e1b45d9da364f11087f"><strong>[release] [major] </strong></span>All bug fixes and feature enhancements from the most
recent 0.5 version and below are also included within 0.6.<a class="changeset-link reference internal" href="#change-dca0b8a1f7cb8e1b45d9da364f11087f">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-105"><span class="target" id="change-7001ff18ae62ae8b4d16f9e25afcedbc"><strong>[release] [major] </strong></span>Platforms targeted now include Python 2.4/2.5/2.6, Python
3.1, Jython2.5.<a class="changeset-link reference internal" href="#change-7001ff18ae62ae8b4d16f9e25afcedbc">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-106"><span class="target" id="change-58e8499ff9cfdf3231dcf8c076a480fb"><strong>[engines] </strong></span>transaction isolation level may be specified with
create_engine(... isolation_level=&#8221;...&#8221;); available on
postgresql and sqlite.<a class="changeset-link reference internal" href="#change-58e8499ff9cfdf3231dcf8c076a480fb">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/443">#443</a></p>
</p>
</li>
<li><p id="change-0.6beta1-107"><span class="target" id="change-ff2e47b0d631ce1a4cf0a598c8f24df2"><strong>[engines] </strong></span>Connection has execution_options(), generative method
which accepts keywords that affect how the statement
is executed w.r.t. the DBAPI.   Currently supports
&#8220;stream_results&#8221;, causes psycopg2 to use a server
side cursor for that statement, as well as
&#8220;autocommit&#8221;, which is the new location for the &#8220;autocommit&#8221;
option from select() and text().   select() and
text() also have .execution_options() as well as
ORM Query().<a class="changeset-link reference internal" href="#change-ff2e47b0d631ce1a4cf0a598c8f24df2">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-108"><span class="target" id="change-e139a9a5cd97f4d218b570024523f623"><strong>[engines] </strong></span>fixed the import for entrypoint-driven dialects to
not rely upon silly tb_info trick to determine import
error status.<a class="changeset-link reference internal" href="#change-e139a9a5cd97f4d218b570024523f623">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1630">#1630</a></p>
</p>
</li>
<li><p id="change-0.6beta1-109"><span class="target" id="change-90c8f734ee1abef927dbda0035beb0a0"><strong>[engines] </strong></span>added first() method to ResultProxy, returns first row and
closes result set immediately.<a class="changeset-link reference internal" href="#change-90c8f734ee1abef927dbda0035beb0a0">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-110"><span class="target" id="change-9dbc573a39f6fcf29d1f3dd9858ce826"><strong>[engines] </strong></span>RowProxy objects are now pickleable, i.e. the object returned
by result.fetchone(), result.fetchall() etc.<a class="changeset-link reference internal" href="#change-9dbc573a39f6fcf29d1f3dd9858ce826">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-111"><span class="target" id="change-558e9b15b66e5afa84cb889e23f27300"><strong>[engines] </strong></span>RowProxy no longer has a close() method, as the row no longer
maintains a reference to the parent.  Call close() on
the parent ResultProxy instead, or use autoclose.<a class="changeset-link reference internal" href="#change-558e9b15b66e5afa84cb889e23f27300">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-112"><span class="target" id="change-ec1f0e67ce08a7a3f706dce2d3fbfae6"><strong>[engines] </strong></span>ResultProxy internals have been overhauled to greatly reduce
method call counts when fetching columns.  Can provide a large
speed improvement (up to more than 100%) when fetching large
result sets.  The improvement is larger when fetching columns
that have no type-level processing applied and when using
results as tuples (instead of as dictionaries).  Many
thanks to Elixir&#8217;s Gaëtan de Menten for this dramatic
improvement !<a class="changeset-link reference internal" href="#change-ec1f0e67ce08a7a3f706dce2d3fbfae6">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1586">#1586</a></p>
</p>
</li>
<li><p id="change-0.6beta1-113"><span class="target" id="change-647fd2ee66339752a6882b790cad9b87"><strong>[engines] </strong></span>Databases which rely upon postfetch of &#8220;last inserted id&#8221;
to get at a generated sequence value (i.e. MySQL, MS-SQL)
now work correctly when there is a composite primary key
where the &#8220;autoincrement&#8221; column is not the first primary
key column in the table.<a class="changeset-link reference internal" href="#change-647fd2ee66339752a6882b790cad9b87">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-114"><span class="target" id="change-ab905cc7be5146eb11d1c1de8bd07df9"><strong>[engines] </strong></span>the last_inserted_ids() method has been renamed to the
descriptor &#8220;inserted_primary_key&#8221;.<a class="changeset-link reference internal" href="#change-ab905cc7be5146eb11d1c1de8bd07df9">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-115"><span class="target" id="change-2687369260aafbe26535c7f07241f7df"><strong>[engines] </strong></span>setting echo=False on create_engine() now sets the loglevel
to WARN instead of NOTSET.  This so that logging can be
disabled for a particular engine even if logging
for &#8220;sqlalchemy.engine&#8221; is enabled overall.  Note that the
default setting of &#8220;echo&#8221; is <cite>None</cite>.<a class="changeset-link reference internal" href="#change-2687369260aafbe26535c7f07241f7df">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1554">#1554</a></p>
</p>
</li>
<li><p id="change-0.6beta1-116"><span class="target" id="change-17f0cb7bf2b9ebfb365311e17d0bd7f4"><strong>[engines] </strong></span>ConnectionProxy now has wrapper methods for all transaction
lifecycle events, including begin(), rollback(), commit()
begin_nested(), begin_prepared(), prepare(), release_savepoint(),
etc.<a class="changeset-link reference internal" href="#change-17f0cb7bf2b9ebfb365311e17d0bd7f4">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-117"><span class="target" id="change-1fe7fc3f57be368cd7f20fa804fa9056"><strong>[engines] </strong></span>Connection pool logging now uses both INFO and DEBUG
log levels for logging.  INFO is for major events such
as invalidated connections, DEBUG for all the acquire/return
logging.  <cite>echo_pool</cite> can be False, None, True or &#8220;debug&#8221;
the same way as <cite>echo</cite> works.<a class="changeset-link reference internal" href="#change-1fe7fc3f57be368cd7f20fa804fa9056">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-118"><span class="target" id="change-76cd53cd2b1cfd0a85a475a50a5f2ea3"><strong>[engines] </strong></span>All pyodbc-dialects now support extra pyodbc-specific
kw arguments &#8216;ansi&#8217;, &#8216;unicode_results&#8217;, &#8216;autocommit&#8217;.<a class="changeset-link reference internal" href="#change-76cd53cd2b1cfd0a85a475a50a5f2ea3">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1621">#1621</a></p>
</p>
</li>
<li><p id="change-0.6beta1-119"><span class="target" id="change-9b7a4ecd72a4dc2579674f3e678873ff"><strong>[engines] </strong></span>the &#8220;threadlocal&#8221; engine has been rewritten and simplified
and now supports SAVEPOINT operations.<a class="changeset-link reference internal" href="#change-9b7a4ecd72a4dc2579674f3e678873ff">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-120"><span class="target" id="change-1adc08ecf95db03925768081293804a4"><strong>[engines] </strong></span><dl class="docutils">
<dt>deprecated or removed</dt>
<dd><ul class="first last">
<li>result.last_inserted_ids() is deprecated.  Use
result.inserted_primary_key</li>
<li>dialect.get_default_schema_name(connection) is now
public via dialect.default_schema_name.</li>
<li>the &#8220;connection&#8221; argument from engine.transaction() and
engine.run_callable() is removed - Connection itself
now has those methods.   All four methods accept
<a href="#id9"><span class="problematic" id="id10">*</span></a>args and <a href="#id11"><span class="problematic" id="id12">**</span></a>kwargs which are passed to the given callable,
as well as the operating connection.</li>
</ul>
</dd>
</dl>
<a class="changeset-link reference internal" href="#change-1adc08ecf95db03925768081293804a4">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-121"><span class="target" id="change-fe9d3b373816dc2ba59fe43fa591d219"><strong>[reflection/inspection] </strong></span>Table reflection has been expanded and generalized into
a new API called &#8220;sqlalchemy.engine.reflection.Inspector&#8221;.
The Inspector object provides fine-grained information about
a wide variety of schema information, with room for expansion,
including table names, column names, view definitions, sequences,
indexes, etc.<a class="changeset-link reference internal" href="#change-fe9d3b373816dc2ba59fe43fa591d219">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-122"><span class="target" id="change-66a10b68814b0d202a3f73d3abaad4c7"><strong>[reflection/inspection] </strong></span>Views are now reflectable as ordinary Table objects.  The same
Table constructor is used, with the caveat that &#8220;effective&#8221;
primary and foreign key constraints aren&#8217;t part of the reflection
results; these have to be specified explicitly if desired.<a class="changeset-link reference internal" href="#change-66a10b68814b0d202a3f73d3abaad4c7">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-123"><span class="target" id="change-7d9c40c47ab45cde78a91ac3f513b242"><strong>[reflection/inspection] </strong></span>The existing autoload=True system now uses Inspector underneath
so that each dialect need only return &#8220;raw&#8221; data about tables
and other objects - Inspector is the single place that information
is compiled into Table objects so that consistency is at a maximum.<a class="changeset-link reference internal" href="#change-7d9c40c47ab45cde78a91ac3f513b242">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-124"><span class="target" id="change-a6a9a63e0053aafa663dea40ade905f0"><strong>[ddl] </strong></span>the DDL system has been greatly expanded.  the DDL() class
now extends the more generic DDLElement(), which forms the basis
of many new constructs:<blockquote>
<div><blockquote>
<div><ul>
<li>CreateTable()</li>
<li>DropTable()</li>
<li>AddConstraint()</li>
<li>DropConstraint()</li>
<li>CreateIndex()</li>
<li>DropIndex()</li>
<li>CreateSequence()</li>
<li>DropSequence()</li>
</ul>
</div></blockquote>
<p>These support &#8220;on&#8221; and &#8220;execute-at()&#8221; just like plain DDL()
does.  User-defined DDLElement subclasses can be created and
linked to a compiler using the sqlalchemy.ext.compiler extension.</p>
</div></blockquote>
<a class="changeset-link reference internal" href="#change-a6a9a63e0053aafa663dea40ade905f0">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-125"><span class="target" id="change-63a49f0fdf1563dacaaa9a23d4c73d3a"><strong>[ddl] </strong></span>The signature of the &#8220;on&#8221; callable passed to DDL() and
DDLElement() is revised as follows:<blockquote>
<div>&#8220;ddl&#8221; - the DDLElement object itself.
&#8220;event&#8221; - the string event name.
&#8220;target&#8221; - previously &#8220;schema_item&#8221;, the Table or
MetaData object triggering the event.
&#8220;connection&#8221; - the Connection object in use for the operation.
<a href="#id13"><span class="problematic" id="id14">**</span></a>kw - keyword arguments.  In the case of MetaData before/after<blockquote>
<div>create/drop, the list of Table objects for which
CREATE/DROP DDL is to be issued is passed as the kw
argument &#8220;tables&#8221;. This is necessary for metadata-level
DDL that is dependent on the presence of specific tables.</div></blockquote>
</div></blockquote>
<ul>
<li>the &#8220;schema_item&#8221; attribute of DDL has been renamed to
&#8220;target&#8221;.</li>
</ul>
<a class="changeset-link reference internal" href="#change-63a49f0fdf1563dacaaa9a23d4c73d3a">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-126"><span class="target" id="change-309ea6a05094c41ff3447b7aeb64cd22"><strong>[dialect] [refactor] </strong></span>Dialect modules are now broken into database dialects
plus DBAPI implementations. Connect URLs are now
preferred to be specified using dialect+driver://...,
i.e. &#8220;mysql+mysqldb://scott:tiger&#64;localhost/test&#8221;. See
the 0.6 documentation for examples.<a class="changeset-link reference internal" href="#change-309ea6a05094c41ff3447b7aeb64cd22">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-127"><span class="target" id="change-c50c8d68a80a22e1cace4b16d0b405e1"><strong>[dialect] [refactor] </strong></span>the setuptools entrypoint for external dialects is now
called &#8220;sqlalchemy.dialects&#8221;.<a class="changeset-link reference internal" href="#change-c50c8d68a80a22e1cace4b16d0b405e1">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-128"><span class="target" id="change-4dda1aa78046eb29914b005241fb0eb6"><strong>[dialect] [refactor] </strong></span>the &#8220;owner&#8221; keyword argument is removed from Table. Use
&#8220;schema&#8221; to represent any namespaces to be prepended to
the table name.<a class="changeset-link reference internal" href="#change-4dda1aa78046eb29914b005241fb0eb6">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-129"><span class="target" id="change-20dfe96a61f245f370f47bd3d9e28791"><strong>[dialect] [refactor] </strong></span>server_version_info becomes a static attribute.<a class="changeset-link reference internal" href="#change-20dfe96a61f245f370f47bd3d9e28791">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-130"><span class="target" id="change-d886ab16ae25f489620c28fd52a6a00a"><strong>[dialect] [refactor] </strong></span>dialects receive an initialize() event on initial
connection to determine connection properties.<a class="changeset-link reference internal" href="#change-d886ab16ae25f489620c28fd52a6a00a">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-131"><span class="target" id="change-4861423f4ff36544dc83545d48d8523d"><strong>[dialect] [refactor] </strong></span>dialects receive a visit_pool event have an opportunity
to establish pool listeners.<a class="changeset-link reference internal" href="#change-4861423f4ff36544dc83545d48d8523d">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-132"><span class="target" id="change-77a8bc1484dc353cc24fd4772244f757"><strong>[dialect] [refactor] </strong></span>cached TypeEngine classes are cached per-dialect class
instead of per-dialect.<a class="changeset-link reference internal" href="#change-77a8bc1484dc353cc24fd4772244f757">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-133"><span class="target" id="change-4ad2b7d81680c7f34705e3613b7e36fb"><strong>[dialect] [refactor] </strong></span>new UserDefinedType should be used as a base class for
new types, which preserves the 0.5 behavior of
get_col_spec().<a class="changeset-link reference internal" href="#change-4ad2b7d81680c7f34705e3613b7e36fb">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-134"><span class="target" id="change-461c903cb377ff8681ec08be16613ab4"><strong>[dialect] [refactor] </strong></span>The result_processor() method of all type classes now
accepts a second argument &#8220;coltype&#8221;, which is the DBAPI
type argument from cursor.description.  This argument
can help some types decide on the most efficient processing
of result values.<a class="changeset-link reference internal" href="#change-461c903cb377ff8681ec08be16613ab4">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-135"><span class="target" id="change-99c23fa8c33e3f526d98bf39d26e3f0f"><strong>[dialect] [refactor] </strong></span>Deprecated Dialect.get_params() removed.<a class="changeset-link reference internal" href="#change-99c23fa8c33e3f526d98bf39d26e3f0f">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-136"><span class="target" id="change-6ada9c457b2d323fc3c2bd369bf4e07b"><strong>[dialect] [refactor] </strong></span>Dialect.get_rowcount() has been renamed to a descriptor
&#8220;rowcount&#8221;, and calls cursor.rowcount directly. Dialects
which need to hardwire a rowcount in for certain calls
should override the method to provide different behavior.<a class="changeset-link reference internal" href="#change-6ada9c457b2d323fc3c2bd369bf4e07b">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-137"><span class="target" id="change-c02c74322d7c1ece9af8ad1704c033e1"><strong>[dialect] [refactor] </strong></span>DefaultRunner and subclasses have been removed.  The job
of this object has been simplified and moved into
ExecutionContext.  Dialects which support sequences should
add a <cite>fire_sequence()</cite> method to their execution context
implementation.<a class="changeset-link reference internal" href="#change-c02c74322d7c1ece9af8ad1704c033e1">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1566">#1566</a></p>
</p>
</li>
<li><p id="change-0.6beta1-138"><span class="target" id="change-e3eaf58468be38fd781277edac3a7140"><strong>[dialect] [refactor] </strong></span>Functions and operators generated by the compiler now use
(almost) regular dispatch functions of the form
&#8220;visit_&lt;opname&gt;&#8221; and &#8220;visit_&lt;funcname&gt;_fn&#8221; to provide
customed processing. This replaces the need to copy the
&#8220;functions&#8221; and &#8220;operators&#8221; dictionaries in compiler
subclasses with straightforward visitor methods, and also
allows compiler subclasses complete control over
rendering, as the full _Function or _BinaryExpression
object is passed in.<a class="changeset-link reference internal" href="#change-e3eaf58468be38fd781277edac3a7140">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-139"><span class="target" id="change-3bbeb8422b9fa129668159a5fbbccd13"><strong>[types] </strong></span>The construction of types within dialects has been totally
overhauled.  Dialects now define publically available types
as UPPERCASE names exclusively, and internal implementation
types using underscore identifiers (i.e. are private).
The system by which types are expressed in SQL and DDL
has been moved to the compiler system.  This has the
effect that there are much fewer type objects within
most dialects. A detailed document on this architecture
for dialect authors is in
lib/sqlalchemy/dialects/type_migration_guidelines.txt .<a class="changeset-link reference internal" href="#change-3bbeb8422b9fa129668159a5fbbccd13">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-140"><span class="target" id="change-a1738683c3d87b598a5a039c7faed0e0"><strong>[types] </strong></span>Types no longer make any guesses as to default
parameters. In particular, Numeric, Float, NUMERIC,
FLOAT, DECIMAL don&#8217;t generate any length or scale unless
specified.<a class="changeset-link reference internal" href="#change-a1738683c3d87b598a5a039c7faed0e0">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-141"><span class="target" id="change-0e50f446360f471e031c78a9fef201a3"><strong>[types] </strong></span>types.Binary is renamed to types.LargeBinary, it only
produces BLOB, BYTEA, or a similar &#8220;long binary&#8221; type.
New base BINARY and VARBINARY
types have been added to access these MySQL/MS-SQL specific
types in an agnostic way.<a class="changeset-link reference internal" href="#change-0e50f446360f471e031c78a9fef201a3">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1664">#1664</a></p>
</p>
</li>
<li><p id="change-0.6beta1-142"><span class="target" id="change-236aba55b2dc30a153e666c8d4fc745f"><strong>[types] </strong></span>String/Text/Unicode types now skip the unicode() check
on each result column value if the dialect has
detected the DBAPI as returning Python unicode objects
natively.  This check is issued on first connect
using &#8220;SELECT CAST &#8216;some text&#8217; AS VARCHAR(10)&#8221; or
equivalent, then checking if the returned object
is a Python unicode.   This allows vast performance
increases for native-unicode DBAPIs, including
pysqlite/sqlite3, psycopg2, and pg8000.<a class="changeset-link reference internal" href="#change-236aba55b2dc30a153e666c8d4fc745f">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-143"><span class="target" id="change-48d0f246a76fcd18e2d43a473beab4ba"><strong>[types] </strong></span>Most types result processors have been checked for possible speed
improvements. Specifically, the following generic types have been
optimized, resulting in varying speed improvements:
Unicode, PickleType, Interval, TypeDecorator, Binary.
Also the following dbapi-specific implementations have been improved:
Time, Date and DateTime on Sqlite, ARRAY on Postgresql,
Time on MySQL, Numeric(as_decimal=False) on MySQL, oursql and
pypostgresql, DateTime on cx_oracle and LOB-based types on cx_oracle.<a class="changeset-link reference internal" href="#change-48d0f246a76fcd18e2d43a473beab4ba">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-144"><span class="target" id="change-9d4508b066c6e6fd68af58a2488b24a6"><strong>[types] </strong></span>Reflection of types now returns the exact UPPERCASE
type within types.py, or the UPPERCASE type within
the dialect itself if the type is not a standard SQL
type.  This means reflection now returns more accurate
information about reflected types.<a class="changeset-link reference internal" href="#change-9d4508b066c6e6fd68af58a2488b24a6">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-145"><span class="target" id="change-7ac9dceee42e42dc8a5c9472df0e1d2a"><strong>[types] </strong></span>Added a new Enum generic type. Enum is a schema-aware object
to support databases which require specific DDL in order to
use enum or equivalent; in the case of PG it handles the
details of <cite>CREATE TYPE</cite>, and on other databases without
native enum support will by generate VARCHAR + an inline CHECK
constraint to enforce the enum.<a class="changeset-link reference internal" href="#change-7ac9dceee42e42dc8a5c9472df0e1d2a">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1511">#1511</a>, <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1109">#1109</a></p>
</p>
</li>
<li><p id="change-0.6beta1-146"><span class="target" id="change-ab51cd0f5146920fb998f5c5a93cabdd"><strong>[types] </strong></span>The Interval type includes a &#8220;native&#8221; flag which controls
if native INTERVAL types (postgresql + oracle) are selected
if available, or not.  &#8220;day_precision&#8221; and &#8220;second_precision&#8221;
arguments are also added which propagate as appropriately
to these native types. Related to.<a class="changeset-link reference internal" href="#change-ab51cd0f5146920fb998f5c5a93cabdd">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1467">#1467</a></p>
</p>
</li>
<li><p id="change-0.6beta1-147"><span class="target" id="change-26f9fec07b187541c0098597a7197ff8"><strong>[types] </strong></span>The Boolean type, when used on a backend that doesn&#8217;t
have native boolean support, will generate a CHECK
constraint &#8220;col IN (0, 1)&#8221; along with the int/smallint-
based column type.  This can be switched off if
desired with create_constraint=False.
Note that MySQL has no native boolean <em>or</em> CHECK constraint
support so this feature isn&#8217;t available on that platform.<a class="changeset-link reference internal" href="#change-26f9fec07b187541c0098597a7197ff8">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1589">#1589</a></p>
</p>
</li>
<li><p id="change-0.6beta1-148"><span class="target" id="change-bbd25c78a1c3340579717367777509bc"><strong>[types] </strong></span>PickleType now uses == for comparison of values when
mutable=True, unless the &#8220;comparator&#8221; argument with a
comparsion function is specified to the type. Objects
being pickled will be compared based on identity (which
defeats the purpose of mutable=True) if __eq__() is not
overridden or a comparison function is not provided.<a class="changeset-link reference internal" href="#change-bbd25c78a1c3340579717367777509bc">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-149"><span class="target" id="change-23a61cc6adace380c1a9e342d1174c32"><strong>[types] </strong></span>The default &#8220;precision&#8221; and &#8220;scale&#8221; arguments of Numeric
and Float have been removed and now default to None.
NUMERIC and FLOAT will be rendered with no numeric
arguments by default unless these values are provided.<a class="changeset-link reference internal" href="#change-23a61cc6adace380c1a9e342d1174c32">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-150"><span class="target" id="change-d18a18e76aea7383243090429523e54c"><strong>[types] </strong></span>AbstractType.get_search_list() is removed - the games
that was used for are no longer necessary.<a class="changeset-link reference internal" href="#change-d18a18e76aea7383243090429523e54c">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-151"><span class="target" id="change-d76a27861917c6bf030a837acf9ce8fe"><strong>[types] </strong></span>Added a generic BigInteger type, compiles to
BIGINT or NUMBER(19).<a class="changeset-link reference internal" href="#change-d76a27861917c6bf030a837acf9ce8fe">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1125">#1125</a></p>
</p>
</li>
<li><p id="change-0.6beta1-152"><span class="target" id="change-05b2ce683e77d35a420cda187f7222ab"><strong>[types] </strong></span>sqlsoup has been overhauled to explicitly support an 0.5 style
session, using autocommit=False, autoflush=True. Default
behavior of SQLSoup now requires the usual usage of commit()
and rollback(), which have been added to its interface. An
explcit Session or scoped_session can be passed to the
constructor, allowing these arguments to be overridden.<a class="changeset-link reference internal" href="#change-05b2ce683e77d35a420cda187f7222ab">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-153"><span class="target" id="change-55a1682d2cbda5fbf6dd2d58744f5dbe"><strong>[types] </strong></span>sqlsoup db.&lt;sometable&gt;.update() and delete() now call
query(cls).update() and delete(), respectively.<a class="changeset-link reference internal" href="#change-55a1682d2cbda5fbf6dd2d58744f5dbe">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-154"><span class="target" id="change-a22079daeb20e98393c35a74d11c0259"><strong>[types] </strong></span>sqlsoup now has execute() and connection(), which call upon
the Session methods of those names, ensuring that the bind is
in terms of the SqlSoup object&#8217;s bind.<a class="changeset-link reference internal" href="#change-a22079daeb20e98393c35a74d11c0259">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-155"><span class="target" id="change-99c1ecd3203ef2d370b542d1b605ca61"><strong>[types] </strong></span>sqlsoup objects no longer have the &#8216;query&#8217; attribute - it&#8217;s
not needed for sqlsoup&#8217;s usage paradigm and it gets in the
way of a column that is actually named &#8216;query&#8217;.<a class="changeset-link reference internal" href="#change-99c1ecd3203ef2d370b542d1b605ca61">(link)</a><p></p>
</p>
</li>
<li><p id="change-0.6beta1-156"><span class="target" id="change-351b0756ad5ba1266508d1dea1de559e"><strong>[types] </strong></span>The signature of the proxy_factory callable passed to
association_proxy is now (lazy_collection, creator,
value_attr, association_proxy), adding a fourth argument
that is the parent AssociationProxy argument.  Allows
serializability and subclassing of the built in collections.<a class="changeset-link reference internal" href="#change-351b0756ad5ba1266508d1dea1de559e">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1259">#1259</a></p>
</p>
</li>
<li><p id="change-0.6beta1-157"><span class="target" id="change-c0b751885f79648b1e07bd4f1d5aa0c8"><strong>[types] </strong></span>association_proxy now has basic comparator methods .any(),
.has(), .contains(), ==, !=, thanks to Scott Torborg.<a class="changeset-link reference internal" href="#change-c0b751885f79648b1e07bd4f1d5aa0c8">(link)</a><p> <a class="reference external" href="http://www.sqlalchemy.org/trac/ticket/1372">#1372</a></p>
</p>
</li>
</ul>
</div>
</div>
</div>

    </div>

</div>

<div id="docs-bottom-navigation" class="docs-navigation-links">
        Previous:
        <a href="changelog_07.html" title="previous chapter">0.7 Changelog</a>
        Next:
        <a href="changelog_05.html" title="next chapter">0.5 Changelog</a>

    <div id="docs-copyright">
        &copy; <a href="../copyright.html">Copyright</a> 2007-2013, the SQLAlchemy authors and contributors.
        Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3.
    </div>
</div>

</div>

        
    </body>
</html>


